Help Center/ API Gateway/ Developer Guide/ Importing and Exporting APIs/ Extended Definition/ x-apigateway-backend/ x-apigateway-backend.mockEndpoints
Updated on 2023-04-06 GMT+08:00
x-apigateway-backend.mockEndpoints
Meaning: Mock backend service definition.
Scope of effect: x-apigateway-backend
Example:
paths:
'/users/{userId}':
get:
produces:
- "application/json"
parameters:
- name: "X-Auth-Token"
description: "Authentication token"
type: "string"
in: "header"
required: true
responses:
default:
description: "default response"
x-apigateway-request-type: "public"
x-apigateway-backend:
type: "MOCK"
mockEndpoints:
result-content: "mocked" | Parameter | Mandatory | Type | Description |
|---|---|---|---|
| result-content | Yes | String | Mock response. |
Parent topic: x-apigateway-backend
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.