diff options
Diffstat (limited to 'docs/swagger.yaml')
| -rw-r--r-- | docs/swagger.yaml | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index b20f762..3e83fe8 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | basePath: /v1 | 1 | basePath: /api/v1 |
| 2 | definitions: | 2 | definitions: |
| 3 | handlers.ChapterMapsResponse: | 3 | handlers.ChapterMapsResponse: |
| 4 | properties: | 4 | properties: |
| @@ -462,7 +462,7 @@ definitions: | |||
| 462 | user_name: | 462 | user_name: |
| 463 | type: string | 463 | type: string |
| 464 | type: object | 464 | type: object |
| 465 | host: lp.ardapektezol.com/api | 465 | host: lp.ardapektezol.com |
| 466 | info: | 466 | info: |
| 467 | contact: {} | 467 | contact: {} |
| 468 | description: Backend API endpoints for the Least Portals Database. | 468 | description: Backend API endpoints for the Least Portals Database. |
| @@ -660,11 +660,6 @@ paths: | |||
| 660 | name: mapid | 660 | name: mapid |
| 661 | required: true | 661 | required: true |
| 662 | type: integer | 662 | type: integer |
| 663 | - description: Discussion ID | ||
| 664 | in: path | ||
| 665 | name: discussionid | ||
| 666 | required: true | ||
| 667 | type: integer | ||
| 668 | - description: Body | 663 | - description: Body |
| 669 | in: body | 664 | in: body |
| 670 | name: request | 665 | name: request |
| @@ -890,6 +885,34 @@ paths: | |||
| 890 | type: object | 885 | type: object |
| 891 | tags: | 886 | tags: |
| 892 | - maps | 887 | - maps |
| 888 | /maps/{mapid}/record/{recordid}: | ||
| 889 | delete: | ||
| 890 | description: Delete record with specified map and record id. | ||
| 891 | parameters: | ||
| 892 | - description: Map ID | ||
| 893 | in: path | ||
| 894 | name: mapid | ||
| 895 | required: true | ||
| 896 | type: integer | ||
| 897 | - description: Record ID | ||
| 898 | in: path | ||
| 899 | name: recordid | ||
| 900 | required: true | ||
| 901 | type: integer | ||
| 902 | - description: JWT Token | ||
| 903 | in: header | ||
| 904 | name: Authorization | ||
| 905 | required: true | ||
| 906 | type: string | ||
| 907 | produces: | ||
| 908 | - application/json | ||
| 909 | responses: | ||
| 910 | "200": | ||
| 911 | description: OK | ||
| 912 | schema: | ||
| 913 | $ref: '#/definitions/models.Response' | ||
| 914 | tags: | ||
| 915 | - maps | ||
| 893 | /maps/{mapid}/summary: | 916 | /maps/{mapid}/summary: |
| 894 | delete: | 917 | delete: |
| 895 | description: Delete map summary with specified map id. | 918 | description: Delete map summary with specified map id. |