Random order in mocks #1812
-
|
Hello, I am deploying Microcks! When I deploy the same API specification (only changing the name), it seems that the order of the mocks is random. There seems to be another discussion with the same problem: https://github.com/orgs/microcks/discussions/1644 I would prefer not to have to create a script or fallback dispatcher. Is there a parameter that can be defined with OpenApi so that Microcks understands the priority? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
Hello @KoldoCanellas Microcks will use your OpenAPI definition (especially the You can see it in action while walking through the "1st REST mock" tutorial here: https://microcks.io/documentation/tutorials/first-rest-mock/#3-using-query-parameters-in-openapi Let me know if it helps. |
Beta Was this translation helpful? Give feedback.

Ok, in that case, defining a dispatcher is required. But you can easily define it in your OpenAPI file using our extension, just adding a
x-microcks-operationattribute like below:If you don't want to have this extension appear in your OpenAPI file, you ca…