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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -