Sign in Go Pro


Issuing HTTP PUT Requests to Update Entities with the @Body and @Path Annotations

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



In this Lesson you will learn:

  • What is a PUT request
  • When you should use a PUT request
  • How to provide an @Path variable with a PUT request
  • How to send a PUT request with @Body parameter
  • How to view the response to the PUT request in Logcat

- Retrofit


Nice video, ty. I have a question. In real world, should we place retrofit in model instead of presenter?

It really depends on your application. I have never personally made API calls from my model classes only ever in a Service or Presenter.


Lessons in RetroFit2