You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working on an implementation of the Atomic Operations extension on both the server and client-side.
I'm wondering if there is a way for an operation to request the inclusion of related resources in its response? For example, if one of my operations is to create a resource, can I request the inclusion of resources related to the resource that has just been created?
The spec doesn't appear to say anything about it. I haven't thought about this in a huge amount of detail, but as a starting point, perhaps something like this could be allowed:
Another consideration is that it could also be useful to be able to specify other query parameters, like fields for sparse field sets. So perhaps these could all be wrapped in a params object:
Another consideration is that it could also be useful to be able to specify other query parameters, like fields for sparse field sets. So perhaps these could all be wrapped in a params object:
It would be good if the specification indicated whether query parameters should be included in the href field; if not, then a side-structure like @tobyzerner's "params" suggestion would be very helpful.
@tobyzerner thanks for pointing out this oversight. I believe that inclusion of query params in the href member as a means to control the shape of the response document would be inappropriate. Instead I favor the introduction of a params member, which was in the original operations PR. It will need a bit further specificity, as discussed in the comments.
jelhan
added
the
extension
Related to existing and proposed extensions as well as extensions in general
label
Feb 4, 2022
I'm currently working on an implementation of the Atomic Operations extension on both the server and client-side.
I'm wondering if there is a way for an operation to request the inclusion of related resources in its response? For example, if one of my operations is to
create
a resource, can I request the inclusion of resources related to the resource that has just been created?The spec doesn't appear to say anything about it. I haven't thought about this in a huge amount of detail, but as a starting point, perhaps something like this could be allowed:
Or perhaps it would be better to introduce a new member which could be used in combination with both
ref
andhref
:The response could look like this:
The text was updated successfully, but these errors were encountered: