You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
schnutibox/assets/web/swagger-ui/schnutibox.swagger.json

173 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": {
"/api/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"
]
}
},
"/api/v1/timer": {
"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"
]
},
"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"
}
}
}
}
}