Skip to content

Instantly share code, notes, and snippets.

@vladimirfomene
Last active August 22, 2018 10:45
Show Gist options
  • Save vladimirfomene/e9887419d236d78c0fd273a05707cda2 to your computer and use it in GitHub Desktop.
Save vladimirfomene/e9887419d236d78c0fd273a05707cda2 to your computer and use it in GitHub Desktop.
Auth0 article outline

Creating and Consuming a RESTFUL web service with Springboot and Retrofit.

Overview of creating and consuming RESTFUL web service with Springboot and Retrofit

Creating RESTFUL APIS with Springboot

  • Clone Sample project
  • Create entities which will be saved in the database(I will use user and posts as my entities).
  • Create repositories to interact with these entities.
  • Create a RESTFUL service with @RestController for interacting with entities.
  • Extend the REST service with HATEOS(Hypermedia as the Engine of Application State)

Consuming a RESTFUL service with Retrofit

  • Clone the sample app for the REST client
  • Create a web service client with retrofit(https://square.github.io/retrofit/)
  • Consume data either from our own rest api, twitter or github.

Conclusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment