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
Post a Comment