F
F
foonfyrick2021-02-21 13:11:11
Android
foonfyrick, 2021-02-21 13:11:11

retrofit put vs patch? What is the difficulty of always replacing the entire object?

As written: PUT requests replace the entire object. On the other hand, PATCH requests only send properties that have changed and ignore anything that remains the same.

And what is the difficulty of always replacing the entire object? How much different is the speed of replacing an object from the speed of replacing a single property? How big can the transferred objects be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-02-21
@foonfyrick

With PATCH, for example, you can make such an apishka;
jsonpatch.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question