mirror of
https://github.com/IS1DI/x0gp.git
synced 2026-07-16 20:47:55 +00:00
Add gh workflow for release, new fields in podium and versioning
This commit is contained in:
@@ -1750,6 +1750,26 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/version": {
|
||||
"get": {
|
||||
"description": "Returns the current server version.",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"system"
|
||||
],
|
||||
"summary": "Get server version",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/transport.VersionResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/video/control": {
|
||||
"post": {
|
||||
"description": "Sends a text command (e.g. start, stop, left, right) to the ESP32 command port (UDP 8888).",
|
||||
@@ -2552,6 +2572,13 @@ const docTemplate = `{
|
||||
"transport.RacePodiumEntry": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"avatar_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"clan_id": {
|
||||
"type": "string",
|
||||
"example": "clan-bob"
|
||||
},
|
||||
"driver_id": {
|
||||
"type": "string",
|
||||
"example": "driver-alice"
|
||||
@@ -2560,6 +2587,10 @@ const docTemplate = `{
|
||||
"type": "string",
|
||||
"example": "driver-alice"
|
||||
},
|
||||
"nickname": {
|
||||
"type": "string",
|
||||
"example": "driver-alice"
|
||||
},
|
||||
"position": {
|
||||
"type": "integer",
|
||||
"example": 1
|
||||
@@ -2851,6 +2882,15 @@ const docTemplate = `{
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"transport.VersionResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"example": "0.1.0-poc"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
||||
@@ -1748,6 +1748,26 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/version": {
|
||||
"get": {
|
||||
"description": "Returns the current server version.",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"system"
|
||||
],
|
||||
"summary": "Get server version",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/transport.VersionResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/video/control": {
|
||||
"post": {
|
||||
"description": "Sends a text command (e.g. start, stop, left, right) to the ESP32 command port (UDP 8888).",
|
||||
@@ -2550,6 +2570,13 @@
|
||||
"transport.RacePodiumEntry": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"avatar_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"clan_id": {
|
||||
"type": "string",
|
||||
"example": "clan-bob"
|
||||
},
|
||||
"driver_id": {
|
||||
"type": "string",
|
||||
"example": "driver-alice"
|
||||
@@ -2558,6 +2585,10 @@
|
||||
"type": "string",
|
||||
"example": "driver-alice"
|
||||
},
|
||||
"nickname": {
|
||||
"type": "string",
|
||||
"example": "driver-alice"
|
||||
},
|
||||
"position": {
|
||||
"type": "integer",
|
||||
"example": 1
|
||||
@@ -2849,6 +2880,15 @@
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"transport.VersionResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"version": {
|
||||
"type": "string",
|
||||
"example": "0.1.0-poc"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -478,12 +478,20 @@ definitions:
|
||||
type: object
|
||||
transport.RacePodiumEntry:
|
||||
properties:
|
||||
avatar_url:
|
||||
type: string
|
||||
clan_id:
|
||||
example: clan-bob
|
||||
type: string
|
||||
driver_id:
|
||||
example: driver-alice
|
||||
type: string
|
||||
name:
|
||||
example: driver-alice
|
||||
type: string
|
||||
nickname:
|
||||
example: driver-alice
|
||||
type: string
|
||||
position:
|
||||
example: 1
|
||||
type: integer
|
||||
@@ -677,6 +685,12 @@ definitions:
|
||||
width_m:
|
||||
type: number
|
||||
type: object
|
||||
transport.VersionResponse:
|
||||
properties:
|
||||
version:
|
||||
example: 0.1.0-poc
|
||||
type: string
|
||||
type: object
|
||||
host: localhost:8080
|
||||
info:
|
||||
contact:
|
||||
@@ -1894,6 +1908,19 @@ paths:
|
||||
summary: Get / update / delete a track by id
|
||||
tags:
|
||||
- tracks
|
||||
/api/version:
|
||||
get:
|
||||
description: Returns the current server version.
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Success
|
||||
schema:
|
||||
$ref: '#/definitions/transport.VersionResponse'
|
||||
summary: Get server version
|
||||
tags:
|
||||
- system
|
||||
/api/video/control:
|
||||
post:
|
||||
description: Sends a text command (e.g. start, stop, left, right) to the ESP32
|
||||
|
||||
Reference in New Issue
Block a user