You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually there are approx. 500 calls inside this file, all using more or less the variables compartment and id.
How to I set the variables to a fixed value so the path is consistent?
At them moment they get populated with a random value for every endpoint:
[8:25:00 AM] › [CLI] … awaiting Starting Prism…
[8:25:10 AM] › [CLI] ℹ info GET http://0.0.0.0:4010/eaque/person
[8:25:10 AM] › [CLI] ℹ info GET http://0.0.0.0:4010/vel/person/6552
[8:25:10 AM] › [CLI] ℹ info GET http://0.0.0.0:4010/molestiae/person/3563445/main_address
How to get an output that looks like this?
[8:25:00 AM] › [CLI] … awaiting Starting Prism…
[8:25:10 AM] › [CLI] ℹ info GET http://0.0.0.0:4010/space_3/person
[8:25:10 AM] › [CLI] ℹ info GET http://0.0.0.0:4010/space_3/person/9952
[8:25:10 AM] › [CLI] ℹ info GET http://0.0.0.0:4010/space_3/person/9952/main_address
Background:
I received that swagger file and do not have control over its content
I am in charge to connect these APIs to our product
We will loose access to this API after a certain amount of time -> therefore I would like to have a mock service
The text was updated successfully, but these errors were encountered:
@tibeer we do not support the functionality you're describing today. However, the values printed out at prism start up are just valid examples of URLs you can send requests to. Those aren't the only URLs that will work for Prism to mock. So just because Prism prints out http://0.0.0.0:4010/eaque/person as an example, you can send it http://0.0.0.0:4010/space_3/person as you'd like and Prism will still mock it since the value for compartment matches the OAS spec. We're hoping that's all you need for your use case and Prism does not need this functionality you described just to show uniform example URLs.
I have a swagger file that looks like this:
Actually there are approx. 500 calls inside this file, all using more or less the variables
compartment
andid
.How to I set the variables to a fixed value so the path is consistent?
At them moment they get populated with a random value for every endpoint:
How to get an output that looks like this?
Background:
The text was updated successfully, but these errors were encountered: