Mappings
Create a new mapping for a gateway
Creates a new path mapping within the specified gateway.
post/gateway/{gateway_topic}/mapping
Path parameters
gateway_topicstring required
Unique topic identifier of the gateway
Request body
Example request
{
"path": "/api/users",
"method": "GET",
"is_public": true,
"limit": {
"request": 5000,
"time": 1000
},
"timeout": 30000,
"traffic_distribution": {
"1": 100
}
}Response
Mapping created successfully
Example response
{
"body": {
"subject": "ms.gateway.abcdef123456.mapping.get.api.users",
"path": "/api/users",
"method": "GET",
"is_public": true,
"limit": {
"request": 5000,
"time": 1000
},
"timeout": 30000,
"traffic_distribution": {
"1": 100
},
"modified": 1713531894,
"type": "created"
},
"metadata": {
"subject": "ms.gateway.abcdef123456.gateway"
}
}