2021-05-14 09:48:45 +02:00
|
|
|
{
|
|
|
|
"swagger": "2.0",
|
|
|
|
"info": {
|
|
|
|
"title": "schnutibox.proto",
|
|
|
|
"version": "version not set"
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
{
|
|
|
|
"name": "IdentifierService"
|
2021-08-05 09:43:35 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "TimerService"
|
2021-05-14 09:48:45 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"paths": {
|
2021-08-13 14:43:03 +02:00
|
|
|
"/api/v1/identify": {
|
2021-05-14 09:48:45 +02:00
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|
2021-08-05 09:43:35 +02:00
|
|
|
},
|
2021-08-13 14:43:03 +02:00
|
|
|
"/api/v1/timer": {
|
2021-08-05 09:43:35 +02:00
|
|
|
"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"
|
|
|
|
]
|
2021-08-13 14:43:03 +02:00
|
|
|
},
|
2021-08-05 09:43:35 +02:00
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|
2021-05-14 09:48:45 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-08-05 09:43:35 +02:00
|
|
|
},
|
|
|
|
"v1Timer": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"duration": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"current": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
2021-05-14 09:48:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|