diff options
Diffstat (limited to 'docs/swagger.json')
| -rw-r--r-- | docs/swagger.json | 53 |
1 files changed, 44 insertions, 9 deletions
diff --git a/docs/swagger.json b/docs/swagger.json index 226cadd..d118ce7 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -10,8 +10,8 @@ | |||
| 10 | }, | 10 | }, |
| 11 | "version": "1.0" | 11 | "version": "1.0" |
| 12 | }, | 12 | }, |
| 13 | "host": "lp.ardapektezol.com/api", | 13 | "host": "lp.ardapektezol.com", |
| 14 | "basePath": "/v1", | 14 | "basePath": "/api/v1", |
| 15 | "paths": { | 15 | "paths": { |
| 16 | "/chapters/{chapterid}": { | 16 | "/chapters/{chapterid}": { |
| 17 | "get": { | 17 | "get": { |
| @@ -338,13 +338,6 @@ | |||
| 338 | "required": true | 338 | "required": true |
| 339 | }, | 339 | }, |
| 340 | { | 340 | { |
| 341 | "type": "integer", | ||
| 342 | "description": "Discussion ID", | ||
| 343 | "name": "discussionid", | ||
| 344 | "in": "path", | ||
| 345 | "required": true | ||
| 346 | }, | ||
| 347 | { | ||
| 348 | "description": "Body", | 341 | "description": "Body", |
| 349 | "name": "request", | 342 | "name": "request", |
| 350 | "in": "body", | 343 | "in": "body", |
| @@ -707,6 +700,48 @@ | |||
| 707 | } | 700 | } |
| 708 | } | 701 | } |
| 709 | }, | 702 | }, |
| 703 | "/maps/{mapid}/record/{recordid}": { | ||
| 704 | "delete": { | ||
| 705 | "description": "Delete record with specified map and record id.", | ||
| 706 | "produces": [ | ||
| 707 | "application/json" | ||
| 708 | ], | ||
| 709 | "tags": [ | ||
| 710 | "maps" | ||
| 711 | ], | ||
| 712 | "parameters": [ | ||
| 713 | { | ||
| 714 | "type": "integer", | ||
| 715 | "description": "Map ID", | ||
| 716 | "name": "mapid", | ||
| 717 | "in": "path", | ||
| 718 | "required": true | ||
| 719 | }, | ||
| 720 | { | ||
| 721 | "type": "integer", | ||
| 722 | "description": "Record ID", | ||
| 723 | "name": "recordid", | ||
| 724 | "in": "path", | ||
| 725 | "required": true | ||
| 726 | }, | ||
| 727 | { | ||
| 728 | "type": "string", | ||
| 729 | "description": "JWT Token", | ||
| 730 | "name": "Authorization", | ||
| 731 | "in": "header", | ||
| 732 | "required": true | ||
| 733 | } | ||
| 734 | ], | ||
| 735 | "responses": { | ||
| 736 | "200": { | ||
| 737 | "description": "OK", | ||
| 738 | "schema": { | ||
| 739 | "$ref": "#/definitions/models.Response" | ||
| 740 | } | ||
| 741 | } | ||
| 742 | } | ||
| 743 | } | ||
| 744 | }, | ||
| 710 | "/maps/{mapid}/summary": { | 745 | "/maps/{mapid}/summary": { |
| 711 | "get": { | 746 | "get": { |
| 712 | "description": "Get map summary with specified id.", | 747 | "description": "Get map summary with specified id.", |