Imagine you have a scenario where you need to get a token first, then with GET retrieve an id of the item, then with POST create a new entity related to that id. And then you need to call another microservice with created id from post request.
How you going to do it in swagger?
And more serious question is how you going to force developers keep swagger up to date so I can execute such scenario?
> Imagine you have a scenario where you need to get a token first, then with GET retrieve an id of the item, then with POST create a new entity related to that id. And then you need to call another microservice with created id from post request.
This is a good explanation. I would however be inclined to do that within a script.
> And more serious question is how you going to force developers keep swagger up to date so I can execute such scenario?
The swagger is created automatically from the routes themselves so it is always up to date. To maintain endpoint an integration test can be written which executes the scenario.
How you going to do it in swagger?
And more serious question is how you going to force developers keep swagger up to date so I can execute such scenario?