Environments
You can specify the environments where your server is deployed.
Single URL environments
api.yml
Multiple URLs per environment
You can specify multiple URLs per environment. This is helpful if you have a microservice architecture, and you want a single SDK to interact with multiple servers.
api.yml
If you choose to use this feature, you must specify a url
for each service you define:
auth.yml
Default environment
You can also provide a default environment:
api.yml
By providing a default environment, the generated SDK will be setup to hit that URL out-of-the-box.
Base path
If you would like all of your endpoints to be prefixed with a path, use base-path
.
In the example below, every endpoint is prefixed with a /v1
:
api.yml
Audiences
If you have listed environments that you want to filter, you can leverage audiences.
api.yml