Specific Responses for Certain Parameters in OpenAPI Mocking #2625
Unanswered
zyberzebra
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’d like to simulate an API that provides books. When someone requests GET /books/42, I want to return the same predefined response every time. For all other requests, I would like Prism to respond dynamically or statically based on the specified examples, as it normally does.
Is there currently a way to achieve this in Prism? If not, it would be great if such functionality could be implemented.
Let’s say I have the following endpoint:
And this is my specific example for which I would like the same response to be returned every time:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions