Multiple status codes for the same endpoint #809
Replies: 2 comments 3 replies
-
I'm very surprised of the above quoted block as I cannot identify this being part of official documentation of an answer someone has given on GitHub or Zulip... Could you share the origin of this quote? That said, mocking and dispatching to multiple status code should work in a very deterministic way. Depending on the dispatcher configured on your operation, Microcks is trying to find an appropriate response matching the dispatch criteria. Once this response is found, it is using the response code (200, 201, 404, ...) attached to this response. As an example, you can check this blog post where the example returns Let us know if that helps 😉 |
Beta Was this translation helpful? Give feedback.
-
Hello again, @lbroudoux , |
Beta Was this translation helpful? Give feedback.
-
Hello,
I noticed that by default when you define multiple status codes for your endpoint Microcks returns randomly each time a status code.
Is there a way to force a specific status code response. I asked chat gpt and this was it's answer :
But it's not working, is there a real solution to this ?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions