node.js - Dynamic queries in Stubby4node -


i'm trying that:

# destination id - request: ....     query:       serviceid: "s009"    response:     file: destinations/destination-by-service-id-$serviceid.json ... 

so serviceid match file destination-by-service-id-$serviceid.json instead of having create several files match different service id's, s008, s010, etc...

is can stubby?

you can achieve same in stubby-db.

# destination id - request: ....     url: someurl?serviceid=([0-9a-z]+)    response:     file: destinations/destination-by-service-id-<% url.1 %>.json ... 

Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

php - Mongodb connectivity error -