diff options
Diffstat (limited to '')
| -rw-r--r-- | backend/controllers/recordController.go | 1 | ||||
| -rw-r--r-- | docs/docs.go | 7 | ||||
| -rw-r--r-- | docs/swagger.json | 7 | ||||
| -rw-r--r-- | docs/swagger.yaml | 5 |
4 files changed, 20 insertions, 0 deletions
diff --git a/backend/controllers/recordController.go b/backend/controllers/recordController.go index 101f0e4..6751afc 100644 --- a/backend/controllers/recordController.go +++ b/backend/controllers/recordController.go | |||
| @@ -25,6 +25,7 @@ import ( | |||
| 25 | // @Tags maps | 25 | // @Tags maps |
| 26 | // @Accept mpfd | 26 | // @Accept mpfd |
| 27 | // @Produce json | 27 | // @Produce json |
| 28 | // @Param id path int true "Map ID" | ||
| 28 | // @Param Authorization header string true "JWT Token" | 29 | // @Param Authorization header string true "JWT Token" |
| 29 | // @Param host_demo formData file true "Host Demo" | 30 | // @Param host_demo formData file true "Host Demo" |
| 30 | // @Param partner_demo formData file false "Partner Demo" | 31 | // @Param partner_demo formData file false "Partner Demo" |
diff --git a/docs/docs.go b/docs/docs.go index 41acab3..bb14382 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -338,6 +338,13 @@ const docTemplate = `{ | |||
| 338 | "summary": "Post record with demo of a specific map.", | 338 | "summary": "Post record with demo of a specific map.", |
| 339 | "parameters": [ | 339 | "parameters": [ |
| 340 | { | 340 | { |
| 341 | "type": "integer", | ||
| 342 | "description": "Map ID", | ||
| 343 | "name": "id", | ||
| 344 | "in": "path", | ||
| 345 | "required": true | ||
| 346 | }, | ||
| 347 | { | ||
| 341 | "type": "string", | 348 | "type": "string", |
| 342 | "description": "JWT Token", | 349 | "description": "JWT Token", |
| 343 | "name": "Authorization", | 350 | "name": "Authorization", |
diff --git a/docs/swagger.json b/docs/swagger.json index 3ec06b6..3530d2c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -331,6 +331,13 @@ | |||
| 331 | "summary": "Post record with demo of a specific map.", | 331 | "summary": "Post record with demo of a specific map.", |
| 332 | "parameters": [ | 332 | "parameters": [ |
| 333 | { | 333 | { |
| 334 | "type": "integer", | ||
| 335 | "description": "Map ID", | ||
| 336 | "name": "id", | ||
| 337 | "in": "path", | ||
| 338 | "required": true | ||
| 339 | }, | ||
| 340 | { | ||
| 334 | "type": "string", | 341 | "type": "string", |
| 335 | "description": "JWT Token", | 342 | "description": "JWT Token", |
| 336 | "name": "Authorization", | 343 | "name": "Authorization", |
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 3fe5d66..d4420e2 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -422,6 +422,11 @@ paths: | |||
| 422 | consumes: | 422 | consumes: |
| 423 | - multipart/form-data | 423 | - multipart/form-data |
| 424 | parameters: | 424 | parameters: |
| 425 | - description: Map ID | ||
| 426 | in: path | ||
| 427 | name: id | ||
| 428 | required: true | ||
| 429 | type: integer | ||
| 425 | - description: JWT Token | 430 | - description: JWT Token |
| 426 | in: header | 431 | in: header |
| 427 | name: Authorization | 432 | name: Authorization |