Endpoint configuration

Endpoint configuration differs for native and external endpoints. Native endpoints call Triggered or Ultra Tasks that run on the specified Snaplex. The Snaplex that receives the request executes the task and returns the response. In contrast, for external endpoints, the Snaplex that receives the request forwards that request to a third-party or another Snaplex. Refer to Request execution flow for more information.

Each endpoint type has its own fields and options:

  • Native endpoints: the Triggered or Ultra Task the endpoint calls, and advanced routing rules.
  • External endpoints: the upstream URL, the endpoint options, and response streaming.

The rest of this article describes the configuration that applies to both types.

Tags

Tags group related endpoints together in the development environment and on the Service card when published in the APIM 3.0 Developer Portal. You can override tags at the method level. Without a tag, an endpoint shows up as ungrouped.

Server overrides

A Server override sends requests for one endpoint to a Snaplex other than the one selected for the Service. Without a Server override, the Server selected for the Service handles the request.

Snaplex selection

When you select different Snaplexes at the Service level and endpoint level, API Management 3.0 uses the Snaplex associated with the endpoint. Ultra Tasks should run on the Snaplex configured in the task. For Triggered Tasks, you can select a single or multiple Snaplexes.

Endpoint Paths

An endpoint path routes requests. When you create an endpoint, you must define one or more paths for it. Services created from specifications automatically include the endpoint paths. To learn more about the purpose and functionality of the path and method definitions, refer to the OpenAPI Specification.

An endpoint must have at least one path and at least one HTTP method. Each endpoint path includes:

  • The path value.
  • Optional rules or expressions for advanced routing.
  • An optional Upstream Path.
  • The supported HTTP methods.
  • For each method:
    • For PUT, PATCH, and POST methods, a request schema and optional example.
    • Response codes and descriptions.
    • Optional response body, schema, and example.

Advanced routing rules

Optionally, a path can carry advanced routing rules that must return true for the endpoint to handle the request. Advanced routing rules can be an expression or a set of rules, and they apply to both native and external endpoints.

Refer to Path examples for valid formats. The Upstream Path works differently for the two endpoint types: it sets the PATH_INFO value that a native endpoint's pipeline receives, and it shapes the path appended to the upstream URL for an external endpoint. Refer to Path resolution to learn how APIM 3.0 resolves path values.

Related content

The following describe how to perform tasks related to endpoints: