Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Updated 25 August 2017
What is Retrofit Library and How to send PUT and POST method in the retrofit?
Retrofit Library is a REST Client for Android and Java by Square. It makes relatively easy to send and retrieve JSON (or other structured data) via rest Webservice. In Retrofit, we can configure which converter is used for the data serialization.
When we want to send JSON request data then we use @body annotation in our Request call and pass our request model with @body in the request, and set the content type application/json in the header.
We can also use @Field Annotation, so, we must put @FormUrlEncoded in our API call.
@Field
@FormUrlEncoded
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Name
Email
Subject
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.