Including Id in URI for PUT requests

前端 未结 4 1544
庸人自扰
庸人自扰 2020-12-24 12:14

I was reading some documents about the appropriate use of URI\'s using rest services and I came across an example for basic GET .. DELETE requests.

The example uri\'

4条回答
  •  天涯浪人
    2020-12-24 12:41

    The PUT method requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.

    You want to PUT a resource to the same URI you intend to GET it from.

    RFC 72314.3.4 PUT

提交回复
热议问题