API Gateway Service, gRPC: ApiGatewayService.GetOpenapiSpec
Статья создана
Обновлена 17 октября 2024 г.
Returns the OpenAPI specification of specified API gateway.
gRPC request
rpc GetOpenapiSpec (GetOpenapiSpecRequest) returns (GetOpenapiSpecResponse)
GetOpenapiSpecRequest
{
"apiGatewayId": "string",
"format": "Format"
}
Field |
Description |
apiGatewayId |
string Required field. ID of the API gateway to get specification from. |
format |
enum Format Format of returned specification. Default is the original format used in CreateApiGatewayRequest.
|
GetOpenapiSpecResponse
{
"apiGatewayId": "string",
"openapiSpec": "string"
}
Field |
Description |
apiGatewayId |
string ID of the API gateway. |
openapiSpec |
string The text of specification, JSON or YAML. |