mirror of
https://github.com/IS1DI/x0gp.git
synced 2026-07-16 20:47:55 +00:00
removed device_id from all entities except car. Replaced with car_id . Car -> device_id
This commit is contained in:
+7
-1
@@ -948,7 +948,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/drivers/{id}/device": {
|
||||
"/api/drivers/{id}/car": {
|
||||
"put": {
|
||||
"description": "Dispatches on HTTP method. Path ` + "`" + `/api/drivers/by-nick/{nick}` + "`" + ` is a convenience that returns the driver by 3-letter nickname.",
|
||||
"produces": [
|
||||
@@ -2242,6 +2242,9 @@ const docTemplate = `{
|
||||
"color_hex": {
|
||||
"type": "string"
|
||||
},
|
||||
"device_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"drive": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2309,6 +2312,9 @@ const docTemplate = `{
|
||||
"created_ms": {
|
||||
"type": "integer"
|
||||
},
|
||||
"device_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"drive": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -946,7 +946,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/drivers/{id}/device": {
|
||||
"/api/drivers/{id}/car": {
|
||||
"put": {
|
||||
"description": "Dispatches on HTTP method. Path `/api/drivers/by-nick/{nick}` is a convenience that returns the driver by 3-letter nickname.",
|
||||
"produces": [
|
||||
@@ -2240,6 +2240,9 @@
|
||||
"color_hex": {
|
||||
"type": "string"
|
||||
},
|
||||
"device_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"drive": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2307,6 +2310,9 @@
|
||||
"created_ms": {
|
||||
"type": "integer"
|
||||
},
|
||||
"device_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"drive": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -39,6 +39,8 @@ definitions:
|
||||
$ref: '#/definitions/transport.ChassisWire'
|
||||
color_hex:
|
||||
type: string
|
||||
device_id:
|
||||
type: integer
|
||||
drive:
|
||||
type: string
|
||||
height_mm:
|
||||
@@ -83,6 +85,8 @@ definitions:
|
||||
type: string
|
||||
created_ms:
|
||||
type: integer
|
||||
device_id:
|
||||
type: integer
|
||||
drive:
|
||||
type: string
|
||||
height_mm:
|
||||
@@ -1484,7 +1488,7 @@ paths:
|
||||
summary: Get / update / delete a driver by id
|
||||
tags:
|
||||
- drivers
|
||||
/api/drivers/{id}/device:
|
||||
/api/drivers/{id}/car:
|
||||
put:
|
||||
description: Dispatches on HTTP method. Path `/api/drivers/by-nick/{nick}` is
|
||||
a convenience that returns the driver by 3-letter nickname.
|
||||
|
||||
Reference in New Issue
Block a user