A
A
AlekseiNNN2020-05-20 12:55:15
RESTful API
AlekseiNNN, 2020-05-20 12:55:15

What does a put request look like?

Hello. I'm somewhat new to the back end. Interested in this question.
I read that post request differs from put request in that put does not have a body.
But if I edit the message and update it to the server, then it will have a body and I should do it semantically using put.
In general, do I understand correctly that the body allows the put, or not?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Araya, 2020-05-20
@AlekseiNNN

https://developer.mozilla.org/ru/docs/Web/HTTP/Met...

I
Ivan Shumov, 2020-05-20
@inoise

POST differs from PUT only in one sense. PUT is for updating the state of a resource, and POST is for creating a new resource. Mechanically, there are no other differences.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question