diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-29 19:35:54 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-29 19:35:54 +0300 |
| commit | f187bc7df9b25acdbbf07f13063c9ea0111a6a3b (patch) | |
| tree | 2958d58af18bdd2b20921260c4624c5e0a1064f5 /docs/swagger.yaml | |
| parent | docs: updated for add/edit/delete map summary (diff) | |
| download | lphub-f187bc7df9b25acdbbf07f13063c9ea0111a6a3b.tar.gz lphub-f187bc7df9b25acdbbf07f13063c9ea0111a6a3b.tar.bz2 lphub-f187bc7df9b25acdbbf07f13063c9ea0111a6a3b.zip | |
docs: fix delete map summary
Former-commit-id: c94adce2fb9a6210f2732a35075bbe49adebc532
Diffstat (limited to '')
| -rw-r--r-- | docs/swagger.yaml | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 5309f67..0c55964 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -466,6 +466,38 @@ paths: | |||
| 466 | tags: | 466 | tags: |
| 467 | - maps | 467 | - maps |
| 468 | /maps/{id}/summary: | 468 | /maps/{id}/summary: |
| 469 | delete: | ||
| 470 | parameters: | ||
| 471 | - description: Map ID | ||
| 472 | in: path | ||
| 473 | name: id | ||
| 474 | required: true | ||
| 475 | type: integer | ||
| 476 | - description: Body | ||
| 477 | in: body | ||
| 478 | name: request | ||
| 479 | required: true | ||
| 480 | schema: | ||
| 481 | $ref: '#/definitions/models.DeleteMapSummaryRequest' | ||
| 482 | produces: | ||
| 483 | - application/json | ||
| 484 | responses: | ||
| 485 | "200": | ||
| 486 | description: OK | ||
| 487 | schema: | ||
| 488 | allOf: | ||
| 489 | - $ref: '#/definitions/models.Response' | ||
| 490 | - properties: | ||
| 491 | data: | ||
| 492 | $ref: '#/definitions/models.DeleteMapSummaryRequest' | ||
| 493 | type: object | ||
| 494 | "400": | ||
| 495 | description: Bad Request | ||
| 496 | schema: | ||
| 497 | $ref: '#/definitions/models.Response' | ||
| 498 | summary: Delete map summary with specified map id. | ||
| 499 | tags: | ||
| 500 | - maps | ||
| 469 | get: | 501 | get: |
| 470 | parameters: | 502 | parameters: |
| 471 | - description: Map ID | 503 | - description: Map ID |
| @@ -504,7 +536,7 @@ paths: | |||
| 504 | name: request | 536 | name: request |
| 505 | required: true | 537 | required: true |
| 506 | schema: | 538 | schema: |
| 507 | $ref: '#/definitions/models.DeleteMapSummaryRequest' | 539 | $ref: '#/definitions/models.CreateMapSummaryRequest' |
| 508 | produces: | 540 | produces: |
| 509 | - application/json | 541 | - application/json |
| 510 | responses: | 542 | responses: |
| @@ -515,13 +547,13 @@ paths: | |||
| 515 | - $ref: '#/definitions/models.Response' | 547 | - $ref: '#/definitions/models.Response' |
| 516 | - properties: | 548 | - properties: |
| 517 | data: | 549 | data: |
| 518 | $ref: '#/definitions/models.DeleteMapSummaryRequest' | 550 | $ref: '#/definitions/models.CreateMapSummaryRequest' |
| 519 | type: object | 551 | type: object |
| 520 | "400": | 552 | "400": |
| 521 | description: Bad Request | 553 | description: Bad Request |
| 522 | schema: | 554 | schema: |
| 523 | $ref: '#/definitions/models.Response' | 555 | $ref: '#/definitions/models.Response' |
| 524 | summary: Delete map summary with specified map id. | 556 | summary: Create map summary with specified map id. |
| 525 | tags: | 557 | tags: |
| 526 | - maps | 558 | - maps |
| 527 | put: | 559 | put: |