schnutibox/assets/web/swagger-ui/schnutibox.swagger.json
2021-08-05 09:43:35 +02:00

175 lines
3.5 KiB
JSON

{
"swagger": "2.0",
"info": {
"title": "schnutibox.proto",
"version": "version not set"
},
"tags": [
{
"name": "IdentifierService"
},
{
"name": "TimerService"
}
],
"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"
]
}
},
"/v1/timer/get": {
"get": {
"operationId": "TimerService_Get",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1Timer"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"TimerService"
]
}
},
"/v1/timer/set": {
"post": {
"operationId": "TimerService_Create",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1Timer"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1Timer"
}
}
],
"tags": [
"TimerService"
]
}
}
},
"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"
}
}
}
},
"v1Timer": {
"type": "object",
"properties": {
"duration": {
"type": "string"
},
"current": {
"type": "string"
}
}
}
}
}