postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.82k stars 837 forks source link

mock server proxying #6038

Open LeeMeyer opened 5 years ago

LeeMeyer commented 5 years ago

THE PROBLEM: Working with an app developed by a third party, want to provide mocked endpoints to them and then swap them for real implementations as they become available and stable.

PROPOSED SOLUTION: Ability for the postman mock server to proxy requests to another server for selected endpoints, Other products like Amazon Api Gateway and Mocklabs allow exactly this.

ALTERNATIVES AND WORKAROUNDS: We could modify the client to configurably use the postman mock server or the real server as the base URL for API calls, or make our API forward selected requests to the postman mock server. Either of these solutions seem cumbersome enough that we would just end up using a different product and not worrying about postman mock servers. Might as well just return mocked data in code at this point if we have to change our code to see stuff working, and since we don't work on the app code, would not work for us to make the app configurable like this as we want to be in control of switching mocking on or off per endpoint.

digaomatias commented 5 years ago

How can I plus one this?