diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/docs.go | 37 | ||||
| -rw-r--r-- | docs/swagger.json | 37 | ||||
| -rw-r--r-- | docs/swagger.yaml | 21 |
3 files changed, 95 insertions, 0 deletions
diff --git a/docs/docs.go b/docs/docs.go index cd129f0..bb6f6ab 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -680,6 +680,43 @@ const docTemplate = `{ | |||
| 680 | } | 680 | } |
| 681 | } | 681 | } |
| 682 | }, | 682 | }, |
| 683 | "/token": { | ||
| 684 | "get": { | ||
| 685 | "produces": [ | ||
| 686 | "application/json" | ||
| 687 | ], | ||
| 688 | "tags": [ | ||
| 689 | "auth" | ||
| 690 | ], | ||
| 691 | "summary": "Gets the token cookie value from the user.", | ||
| 692 | "responses": { | ||
| 693 | "200": { | ||
| 694 | "description": "OK", | ||
| 695 | "schema": { | ||
| 696 | "allOf": [ | ||
| 697 | { | ||
| 698 | "$ref": "#/definitions/models.Response" | ||
| 699 | }, | ||
| 700 | { | ||
| 701 | "type": "object", | ||
| 702 | "properties": { | ||
| 703 | "data": { | ||
| 704 | "$ref": "#/definitions/models.LoginResponse" | ||
| 705 | } | ||
| 706 | } | ||
| 707 | } | ||
| 708 | ] | ||
| 709 | } | ||
| 710 | }, | ||
| 711 | "404": { | ||
| 712 | "description": "Not Found", | ||
| 713 | "schema": { | ||
| 714 | "$ref": "#/definitions/models.Response" | ||
| 715 | } | ||
| 716 | } | ||
| 717 | } | ||
| 718 | } | ||
| 719 | }, | ||
| 683 | "/users/{id}": { | 720 | "/users/{id}": { |
| 684 | "get": { | 721 | "get": { |
| 685 | "consumes": [ | 722 | "consumes": [ |
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": [ |
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: |