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.json | |
| 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.json')
| -rw-r--r-- | docs/swagger.json | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/swagger.json b/docs/swagger.json index 442745f..5ba8a71 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -673,6 +673,43 @@ | |||
| 673 | } | 673 | } |
| 674 | } | 674 | } |
| 675 | }, | 675 | }, |
| 676 | "/token": { | ||
| 677 | "get": { | ||
| 678 | "produces": [ | ||
| 679 | "application/json" | ||
| 680 | ], | ||
| 681 | "tags": [ | ||
| 682 | "auth" | ||
| 683 | ], | ||
| 684 | "summary": "Gets the token cookie value from the user.", | ||
| 685 | "responses": { | ||
| 686 | "200": { | ||
| 687 | "description": "OK", | ||
| 688 | "schema": { | ||
| 689 | "allOf": [ | ||
| 690 | { | ||
| 691 | "$ref": "#/definitions/models.Response" | ||
| 692 | }, | ||
| 693 | { | ||
| 694 | "type": "object", | ||
| 695 | "properties": { | ||
| 696 | "data": { | ||
| 697 | "$ref": "#/definitions/models.LoginResponse" | ||
| 698 | } | ||
| 699 | } | ||
| 700 | } | ||
| 701 | ] | ||
| 702 | } | ||
| 703 | }, | ||
| 704 | "404": { | ||
| 705 | "description": "Not Found", | ||
| 706 | "schema": { | ||
| 707 | "$ref": "#/definitions/models.Response" | ||
| 708 | } | ||
| 709 | } | ||
| 710 | } | ||
| 711 | } | ||
| 712 | }, | ||
| 676 | "/users/{id}": { | 713 | "/users/{id}": { |
| 677 | "get": { | 714 | "get": { |
| 678 | "consumes": [ | 715 | "consumes": [ |