Should the PATCH method return all fields of the resource in the response body?

后端 未结 3 1507
南笙
南笙 2021-02-02 10:53

Should the PATCH method return all fields of the resource in the response body?
Or should it return only updated fields?

I\'m reading this

For example, i

3条回答
  •  广开言路
    2021-02-02 11:22

    The specification of PATCH doesn't mandate this.

    If you want to control it you may want to look at https://greenbytes.de/tech/webdav/rfc7240.html#return for inspiration.

提交回复
热议问题