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
A get operation response returns an object containing an array of IDs of another resource. I want to define a link to read the corresponding resources by ID. So if I define the link to the array, I would need to define the operation with parameter serialization. But this I do not want to be supported. I just want to support an operation that is only capable to take one ID and return one response object.
Is it possible to specify in the link, that each of the array results should be taken one by one and be passed sequentially (not serialized) to the get operation?
If I understand right, the link would allow a call like /users/u1,u2,u3. But instead I want to specify that this should be separated into three single calls /users/u1, /users/u2, and /users/u3. To define the link parameter as $response.body#/users[0] is no solution for this, as I do not only want to follow the first element of the result.
Any idea how to specify this else than in the description?
The text was updated successfully, but these errors were encountered:
I've already looked here: https://swagger.io/docs/specification/serialization/, https://swagger.io/docs/specification/serialization/
and at this discussion: OAI/learn.openapis.org#100
I hope you can help me with this:
A get operation response returns an object containing an array of IDs of another resource. I want to define a link to read the corresponding resources by ID. So if I define the link to the array, I would need to define the operation with parameter serialization. But this I do not want to be supported. I just want to support an operation that is only capable to take one ID and return one response object.
Is it possible to specify in the link, that each of the array results should be taken one by one and be passed sequentially (not serialized) to the get operation?
Here is the example
If I understand right, the link would allow a call like
/users/u1,u2,u3
. But instead I want to specify that this should be separated into three single calls/users/u1
,/users/u2
, and/users/u3
. To define the link parameter as$response.body#/users[0]
is no solution for this, as I do not only want to follow the first element of the result.Any idea how to specify this else than in the description?
The text was updated successfully, but these errors were encountered: