dorzey / stubman Goto Github PK
View Code? Open in Web Editor NEWTurns a Postman collection into a stub server.
License: MIT License
Turns a Postman collection into a stub server.
License: MIT License
Hello,
I don't know if you still maintain Stubman.. but I'm really interested in the feature itself.
I've created a small collection (only one API), exported it to JSON, and run stubman
C:\> stubman -c gpp.json
Here is the log I'm getting :
stubman -c "Users\aulansma\Desktop\gpp.json"
Layer { keys: [], regexp: /^/?(?=/|$)/i, handle: [Function: query] }
Layer {
keys: [],
regexp: /^/?(?=/|$)/i,
handle: [Function: expressInit] }
Layer {
keys: [],
regexp: /^/result/api/1.0/patients?username=ber&password=plop&doctorId=112233&applicationId=123/?$/i,
handle: [Function: bound ],
route:
Route {
path: '/result/api/1.0/patients?username=ber&password=plop&doctorId=112233&applicationId=123',
stack: [ [Object] ],
methods: { get: true } } }
Listening on port 3000`
Unfortunately, I can't call the server from Postman, instead of the default response, all I get is
Cannot GET /result/api/1.0/patients?username=ber&password=plop&doctorId=112233&applicationId=123
I've attached the collection (you can remove the.txt, this was just to prevent the attachment limitation from Github)
gpp.json.txt
Kind regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.