Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Allow Stumps to simulate/mock an endpoint before the endpoint is available #83

Open
nquinn-mw opened this issue Jun 17, 2015 · 0 comments
Assignees
Milestone

Comments

@nquinn-mw
Copy link

Currently, in order to create a stump, we need to perform comms to ultimate real endpoint through stumps server whilst it's recording. Then we'll create a stump from the recording and we're able to customise how the stump is served.

However, what about when the ultimate real endpoint isn't ready yet, but we want to use stumps to simulate possible responses that we expect from the real endpoint?

Currently, when the endpoint doesn't exist for example, we might send a request to the ultimate endpoint and it might respond with a HTTP503/500, etc. In that case, the recording doesn't have a response body, and we're not able to add a response body to customise it (i.e. to stick in the response body that you want sent to your client).
I think it'd be useful if we could add a response body to stump, regardless of whether or not the recording from which the stump was created had a response body or not.

@mwmharrington mwmharrington added this to the v0.3 milestone Jun 25, 2015
@mwmharrington mwmharrington self-assigned this Jun 25, 2015
@mwmharrington mwmharrington modified the milestones: v0.3, v0.4 Jul 9, 2015
@mwmharrington mwmharrington modified the milestones: v0.4, Future Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants