Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Missing spec#944

SafaAlfulaij started this conversation inGeneral
May 19, 2021· 2 comments
Discussion options

Updating a Resource’s Relationships -200 OK

If a server accepts an update but also changes the resource(s) in ways other than those specified by the request (for example, updating the updated-at attribute or a computed sha), it MUST return a 200 OK response.The response document MUST include a representation of the updated resource(s) as if a GET request was made to the request URL.

Issue:

There is no way currently to tell the renderer to render the included fields even when provided in the serializer’s data.

You must be logged in to vote

Replies: 2 comments

Comment options

I think that the current way the renderer works isn't correct and wrong in terms of separation of concerns.
Serializers should tell what are the final data that should be rendered. and therefore have the say in it.

Kind of related to#921

You must be logged in to vote
0 replies
Comment options

I do not think the spec snippet you posted is talking aboutincluded resp. compound documents. It simply says if you call the same URL withGET again as the one you do thePATCH call on the response must be the same. And that is what DJA already does.

I think what works (not tested) if you add theinclude query parameters to the URL you do thePATCH on.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@SafaAlfulaij@sliverc

[8]ページ先頭

©2009-2025 Movatter.jp