Nohcs777's avatar
Nohcs777
Regular Visitor
7 years ago
Status:
Implemented

Need Mocking API to be able to control the case for the mock example

An API can support several response codes and projections even in an Idempotent operation.  For clients which expect to use the API and mock out the cases, they need to be able to control what case (response) their attempting to exercise.  Having the mocking VertServer cycle through the possible response examples doesn't allow the api developer / integrator or tester to have reproducible results (manually or programmatic ally).  It would be nice if, when making a request, the client could provide a header describing which response case it would like to exercise.  It would also be nice if the virt server baseUrl was not stored as part of the contract and could be turned on or enabled on a request basis so administrators wouldn't have to change the contract just for a client / team to test the mock contract.

3 Comments