A configurable server for mocking/stubbing external systems during development.
DELETE /
to the admin endpoint to delete all configured stubbed endpoints (#89)stubby
bin script will reflect the expected/error
state of stubby.acorn
updated from 7.0.0 to 7.1.1This project has been stable for some time, best we move to actual semver and
not prerelease versioning. This release on the old versioning system would have been release 0.4.0
. It is now 4.0.0
instead.
BREAKING CHANGES from 0.3.x
mute
option has been renamed quiet
to be more consistent with other cli toolsNew features
hits
to the endpoint data that is returned from the admin portal that represents the amount of times that endpoint has been hit from the stubs portal.path
errors in Node 6In 0.2.x
and below, you could pass request.headers.authorization
as a username:password
string to signify Basic auth and stubby would automatically prefix Basic
and base64-encode the user/pass string. This breaks other forms of web auth that uses the Authorization
header.
# Before
request:
headers:
authorization: 'username:password'
# Now
request:
headers:
authorization: 'Basic username:password'
Stubby will still base64-encode the username:password
if it sees that Basic
is specified and the :
character is present. Otherwise it will take it as-is.
json:
option for endpoints -- instead of using post:
or file:
for matching the body of incoming requests, you can specify json:
with a JSON string and its content will be deeply matched for incoming request bodies.
start()
without any optionsPUT
and the admin portal_httpsOptions
to pass through options to the underlying tls server.