diff options
| author | Nidboj132 <lol2s@vp.plm> | 2023-05-06 17:17:05 +0200 |
|---|---|---|
| committer | Nidboj132 <lol2s@vp.plm> | 2023-05-06 17:17:05 +0200 |
| commit | 8722da97f70d1009d5815f94fe1db7f437e152b8 (patch) | |
| tree | 9bd24899d5bd1aba5ff058acda5a9dbfc4f0a0a2 /docs/swagger.yaml | |
| parent | login test (diff) | |
| parent | doc: token endpoint (diff) | |
| download | lphub-8722da97f70d1009d5815f94fe1db7f437e152b8.tar.gz lphub-8722da97f70d1009d5815f94fe1db7f437e152b8.tar.bz2 lphub-8722da97f70d1009d5815f94fe1db7f437e152b8.zip | |
Merge branch 'main' of https://github.com/pektezol/LeastPortals
Diffstat (limited to 'docs/swagger.yaml')
| -rw-r--r-- | docs/swagger.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index fa1a26d..a39aed4 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -593,6 +593,27 @@ paths: | |||
| 593 | summary: Get all user and map data. | 593 | summary: Get all user and map data. |
| 594 | tags: | 594 | tags: |
| 595 | - search | 595 | - search |
| 596 | /token: | ||
| 597 | get: | ||
| 598 | produces: | ||
| 599 | - application/json | ||
| 600 | responses: | ||
| 601 | "200": | ||
| 602 | description: OK | ||
| 603 | schema: | ||
| 604 | allOf: | ||
| 605 | - $ref: '#/definitions/models.Response' | ||
| 606 | - properties: | ||
| 607 | data: | ||
| 608 | $ref: '#/definitions/models.LoginResponse' | ||
| 609 | type: object | ||
| 610 | "404": | ||
| 611 | description: Not Found | ||
| 612 | schema: | ||
| 613 | $ref: '#/definitions/models.Response' | ||
| 614 | summary: Gets the token cookie value from the user. | ||
| 615 | tags: | ||
| 616 | - auth | ||
| 596 | /users/{id}: | 617 | /users/{id}: |
| 597 | get: | 618 | get: |
| 598 | consumes: | 619 | consumes: |