Sign in Go Pro

RetroFit2

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
Autoplay

Up next

Previous

About

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

Links
- Retrofit

Comments

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.

>
You need to go PRO to post comments.

Lessons in RetroFit2