-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request object / expected response in GET #59
Comments
I understand the issue you’re facing. My only concern is potential confusion during resource updates—you’d update the Currently, the |
yeah.. not the best API implementation :( what about a jq expression that allows to transform the PUT response? |
I understand what you’re suggesting, but just to clarify—right now, you can already apply any jq expression to transform the PUT body. The only requirement is that the result of this expression should either be contained within the GET response or used as the body of a PUT request if it’s not. Does that address your concern, or are you thinking of a different type of transformation? Let me know if I’m missing something! |
I was thinking a transform in the put response so it can be compared to the GET :) |
great, thanks! |
What problem are you facing?
We are encountering an issue with the API we are trying to manage; it returns different response bodies for the GET and PUT requests. When using the Request object, this discrepancy causes it to get stuck in a loop.
To address this issue, it would be greatly beneficial to have an optional “expected response” field in the GET object. By default, this could align with the body of the PUT mapping.
Thank you for considering this enhancement!
The text was updated successfully, but these errors were encountered: