restish
restish copied to clipboard
When multiple APIs are configured, and one's base path is a more specific prefix of the other, restish picks the api to use at random.
Dirty example of apis.json:
"api1": {
"base": "https://api.example.com",
...
"api2": {
"base": "https://api.example.com/foo"
}
If restish is configured like the above, it will randomly switch between api1 and api2 when executing commands:
i.e.
restish api1 command1
will sometimes execute against api2 instead of api1.