From e1fde2db1a8003a2e48d267dfc35ca8c8fc721da Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sat, 6 May 2023 17:43:03 +0300 Subject: doc: token endpoint --- docs/docs.go | 37 +++++++++++++++++++++++++++++++++++++ docs/swagger.json | 37 +++++++++++++++++++++++++++++++++++++ docs/swagger.yaml | 21 +++++++++++++++++++++ 3 files changed, 95 insertions(+) (limited to 'docs') 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 = `{ } } }, + "/token": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "auth" + ], + "summary": "Gets the token cookie value from the user.", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/models.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/models.LoginResponse" + } + } + } + ] + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/models.Response" + } + } + } + } + }, "/users/{id}": { "get": { "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 @@ } } }, + "/token": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "auth" + ], + "summary": "Gets the token cookie value from the user.", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/models.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/models.LoginResponse" + } + } + } + ] + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/models.Response" + } + } + } + } + }, "/users/{id}": { "get": { "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: summary: Get all user and map data. tags: - search + /token: + get: + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/models.Response' + - properties: + data: + $ref: '#/definitions/models.LoginResponse' + type: object + "404": + description: Not Found + schema: + $ref: '#/definitions/models.Response' + summary: Gets the token cookie value from the user. + tags: + - auth /users/{id}: get: consumes: -- cgit v1.2.3