Retrofit Tutorial — Send Objects In Request Body

In this video, you’ll learn how to send Java object in the request body to the server with Retrofit.

Tip: turn on subtitles to deal with my accent. A shortened transcript is also available below.

Read the full tutorial here:

Watch 20+ Retrofit videos in our playlist here:


Our book on Retrofit is…

Related Posts


  1. Your tutorials are awesome…!!!!!
    I have some doubts:
    1.What does nullable mean?
    2.Why did we add body annotation here but not with GET request?
    3.What is the integer that we are getting back from this POST request? And we didn't get for GET request!!
    Hope u help me on the above!!!

  2. I could not make it work at first. So I make one User class without id, and another UserResponse class with id in itself for the callback, and it worked

  3. the section where it says createAccountButton.setOnClickListener( …) is really cryptic to try to understand what you are using due the "view() -> { … }" since that is created by the Intelij, but simple ignoring that does not work either. You failed to make that understandable, and to spot that unexplained section, with that I and others cannot follow your tutorial. Too bad the rest was going really well 🙂

  4. hi sir, i want to post the data with body and get response done.
    my question is i want to pass empty parameter in request in need the response please help me. that means some options parameters

Leave a Reply

Your email address will not be published.

© 2022 Code As Pro - Theme by WPEnjoy · Powered by WordPress