diff options
Diffstat (limited to 'docs/swagger.json')
| -rw-r--r-- | docs/swagger.json | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/docs/swagger.json b/docs/swagger.json index a38240e..043fb6b 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -516,6 +516,60 @@ | |||
| 516 | } | 516 | } |
| 517 | } | 517 | } |
| 518 | }, | 518 | }, |
| 519 | "post": { | ||
| 520 | "description": "Create map discussion comment with specified map id.", | ||
| 521 | "produces": [ | ||
| 522 | "application/json" | ||
| 523 | ], | ||
| 524 | "tags": [ | ||
| 525 | "maps" | ||
| 526 | ], | ||
| 527 | "parameters": [ | ||
| 528 | { | ||
| 529 | "type": "string", | ||
| 530 | "description": "JWT Token", | ||
| 531 | "name": "Authorization", | ||
| 532 | "in": "header", | ||
| 533 | "required": true | ||
| 534 | }, | ||
| 535 | { | ||
| 536 | "type": "integer", | ||
| 537 | "description": "Map ID", | ||
| 538 | "name": "mapid", | ||
| 539 | "in": "path", | ||
| 540 | "required": true | ||
| 541 | }, | ||
| 542 | { | ||
| 543 | "description": "Body", | ||
| 544 | "name": "request", | ||
| 545 | "in": "body", | ||
| 546 | "required": true, | ||
| 547 | "schema": { | ||
| 548 | "$ref": "#/definitions/handlers.CreateMapDiscussionCommentRequest" | ||
| 549 | } | ||
| 550 | } | ||
| 551 | ], | ||
| 552 | "responses": { | ||
| 553 | "200": { | ||
| 554 | "description": "OK", | ||
| 555 | "schema": { | ||
| 556 | "allOf": [ | ||
| 557 | { | ||
| 558 | "$ref": "#/definitions/models.Response" | ||
| 559 | }, | ||
| 560 | { | ||
| 561 | "type": "object", | ||
| 562 | "properties": { | ||
| 563 | "data": { | ||
| 564 | "$ref": "#/definitions/handlers.CreateMapDiscussionCommentRequest" | ||
| 565 | } | ||
| 566 | } | ||
| 567 | } | ||
| 568 | ] | ||
| 569 | } | ||
| 570 | } | ||
| 571 | } | ||
| 572 | }, | ||
| 519 | "delete": { | 573 | "delete": { |
| 520 | "description": "Delete map summary with specified map id.", | 574 | "description": "Delete map summary with specified map id.", |
| 521 | "produces": [ | 575 | "produces": [ |
| @@ -1319,6 +1373,17 @@ | |||
| 1319 | } | 1373 | } |
| 1320 | } | 1374 | } |
| 1321 | }, | 1375 | }, |
| 1376 | "handlers.CreateMapDiscussionCommentRequest": { | ||
| 1377 | "type": "object", | ||
| 1378 | "required": [ | ||
| 1379 | "comment" | ||
| 1380 | ], | ||
| 1381 | "properties": { | ||
| 1382 | "comment": { | ||
| 1383 | "type": "string" | ||
| 1384 | } | ||
| 1385 | } | ||
| 1386 | }, | ||
| 1322 | "handlers.CreateMapDiscussionRequest": { | 1387 | "handlers.CreateMapDiscussionRequest": { |
| 1323 | "type": "object", | 1388 | "type": "object", |
| 1324 | "required": [ | 1389 | "required": [ |