0.0
No commit activity in last 3 years
No release in over 3 years
Rack middleware for creating faking responses for HTTP web services that an application under test communicates with
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

HTTP Service Stubs

Node service for stubbing responses to GET requests

Creating Stubs

Create stubs by sending a PUT request to the path you want stubbed with a triple representing the response you want the next GET request to respond with:

PUT http://example.org/example_path/ HTTP/1.1
Host: localhost:5000
Content-Type: application/json

[200, {"Content-Type": "application/json"}, "{ \"foo\": \"bar\" }"]

The triple consists of:

  1. HTTP response code
  2. HTTP headers
  3. The body of the response

Additional PUT requests will overwrite the current stub.

Requests

A GET request for a stubbed resource will return the stubbed response if one exists or a 404 if one isn't available.

A DELETE request for a stubbed resource will remove the stub if it exists.

Deployment

Use Cosmos to deploy to AWS