I need to create an application that dialogues with a REST server.
I found that answer: Android REST client, Sample? but it's of 2012.
Is there a tutorial that I can follow (and that you suggest) in order to obtain a little working sample project? Thanks in advance.
REST Client in our case is the Retrofit library that is used on the client side (Android) to make HTTP request to REST API, in our case, The Movie DB API and also process the response.
One of the third benefits of REST APIs, and perhaps one of the most important, is scalability and flexibility . REST APIs can be scaled quickly primarily due to the separation between the client and the server. Additionally, developers can also easily integrate REST APIs without much added work.
A REST API (also called a “RESTful” API) is a specific type of API that follows these guidelines. REST stands for Representational State Transfer. This means that when a client requests a resource using a REST API, the server transfers back the current state of the resource in a standardized representation.
All you need is here. https://square.github.io/retrofit/ Its easy to use and you almost dont have to care about json deserialization
Try out a Library called Volley which was demoed in Google I/O 2013
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With