Skip to main content
Version: 4

API servers (Environments)

In OpenAPI 3.0, you use the servers array to specify one or more base URLs for your API.

  • Each server has  aurl and an optionaldescription.

  • You can also have multiple servers, for example, production and sandbox.

Allowed OpenAPI Extensions​

Extensions (also referred to as Adeptia extensions) are custom properties that start with x-adeptia. They can be used to describe extra functionality that is not covered by the standard OpenAPI Specification.

Extension: Environment-Specific Authentication Definitions​

x-adeptia-securitySchemes

This extension allows separate definitions of authentications for different environments.

  • Each environment may have its own authentication endpoints.

  • It's optional; if defined, only the authentications specified here apply to the specified environment.

  • If not defined, global authentications apply to all environments.

The x-adeptia-securitySchemes must have a reference to a security scheme defined in the specification.

This example specifies that:

  • For the Sandbox server, the security scheme is OAuth2SandBox as defined at '#/components/securitySchemes/OAuth2SandBox'.

  • For the Production server, the security scheme is OAuth2 as defined at '#/components/securitySchemes/OAuth2'.

Extension: URL Templating​

x-adeptia-parameters

Any part of the server URL – host name or its parts, subpath – can be parameterized using parameters.

Here is the description of the fields:

Field name
Type
Description
namestringThe name of the parameter.
descriptionstringA description of the parameter.
fetchFromstring
  • When visibility is set to false, the value can be retrieved from account parameters or trigger parameters.
  • Possible values are “account” or “trigger”.
paramNamestring
  • Defined when the visible flag is set to false.
  • The parameter name to retrieve from account or trigger.

Extension: Environment Type​

x-adeptia-environment

Specify the environment type that will appear in the Adeptia Account creation UI in the Environment field.