nav-img
Advanced

x-apigateway-backend

Meaning: API backend definition.

Example:

paths:
'/users/{userId}':
get:
produces:
- "application/json"
responses:
default:
description: "default response"
x-apigateway-request-type: "public"
x-apigateway-backend:
type: "backend endpoint type"
Table 1 Parameter description

Parameter

Mandatory

Type

Description

x-apigateway-backend

Yes

String

Backend service definition.

type

Yes

String

Backend service type. The options include HTTP, HTTP-VPC, FUNCTION, and MOCK.

parameters

No

Backend parameters.

httpEndpoints

No

HTTP backend service definition.

httpVpcEndpoints

No

HTTP VPC backend service definition.

functionEndpoints

No

Function backend service definition.

mockEndpoints

No

Mock backend service definition.