Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question