api/openapi/v1/service.swagger.json
{
"swagger": "2.0",
"info": {
"title": "v1/service.proto",
"version": "version not set"
},
"tags": [
{
"name": "GreeterService"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/v1/hello": {
"post": {
"operationId": "GreeterService_Hello",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1HelloResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1HelloRequest"
}
}
],
"tags": [
"GreeterService"
]
}
},
"/v1/sign": {
"get": {
"operationId": "GreeterService_Sign",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1SignResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GreeterService"
]
}
}
},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
},
"v1HelloRequest": {
"type": "object",
"properties": {
"subject": {
"type": "string"
}
}
},
"v1HelloResponse": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
}
},
"v1SignResponse": {
"type": "object",
"properties": {
"license": {
"type": "string",
"format": "byte"
}
}
}
}
}