Skip to content

douglasalipio/shortenUrlApp

Repository files navigation

##PS:The endpoint /api/alias is currently return 404 for any value in the request body.

I/okhttp.OkHttpClient: Content-Type: application/json
I/okhttp.OkHttpClient: Content-Length: 24
I/okhttp.OkHttpClient: {"url":"https://sou.nu"}
I/okhttp.OkHttpClient: --> END POST (24-byte body)
I/okhttp.OkHttpClient: <-- 404 Not Found https://url-shortener-nu.herokuapp.com/api/alias

Shorter-link app

As the alias api is always returns 404. I've added manually the shortUrl object to the recycler list in order to show the feature usage.

  

Project architecture

  

The App was developed based on clean architecture concept. It is separated by package layers such as domain, presentation, and data.

  • Presentation - layer responsible for the view such as Activities, Fragments, ViewModel, and etc
  • Domain - layer responsible for handle business logic (UseCase)
  • data - layer responsible for handle remote/local data

Testing

  

The app contains instrumentation and unit tests. The code covered roughly 63% without measuring the UI testing

data layer tests:

  • MapperTest
  • DataSourceTest
  • RepositoryTest

domain layer tests:

  • UseCaseTest

presentation layer tests

  • MapperTest
  • ViewmodelTest
  • FragmentTest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages