schnutibox/assets/web/swagger-ui/schnutibox.swagger.json

107 lines
2.0 KiB
JSON
Raw Normal View History

2021-05-14 09:48:45 +02:00
{
"swagger": "2.0",
"info": {
"title": "schnutibox.proto",
"version": "version not set"
},
"tags": [
{
"name": "IdentifierService"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/v1/identify": {
"post": {
"operationId": "IdentifierService_Identify",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1IdentifyResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1IdentifyRequest"
}
}
],
"tags": [
"IdentifierService"
]
}
}
},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"typeUrl": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"v1IdentifyRequest": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"v1IdentifyResponse": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"uris": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}