Changing the default response through mockoon-cli dockerize #60
-
Hey I'm using mockoon for mocking my API. I need a help. The scenarios is 👍 Im using mockoon-cli docker image to run my mocks . and i have multiple responses for my api, there is are no rules in my api. Currently when running through dockerize command , the mockoon returns only the default response that is only one response. Is there a way through mockoon-cli that i can change the default response passing an argument so that i can choose which response to have or or something so that i can have all the multiple responses not just one (default response). Currently im able to do this via mockoon UI by drag and drop flag method. But need help through mockoon-cli-dockeize method. Need help urgently on this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @shans-debug |
Beta Was this translation helpful? Give feedback.
-
Thank you :) |
Beta Was this translation helpful? Give feedback.
Hi @shans-debug
There is currently no way to change the mock behavior with the CLI. You will either have to modify the JSON manually or modify it with the UI.
Reason is simple: the CLI was designed as a runner tool, rather than a design/editor. This is the role of the UI.