From f1f9240bc1a877f6056bcaf400673b54ecc04ad3 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 1 May 2023 13:08:26 +0300 Subject: search endpoint init, fetch all data (#40) --- docs/docs.go | 28 +++++++++++++++++++++++++--- docs/swagger.json | 28 +++++++++++++++++++++++++--- docs/swagger.yaml | 18 ++++++++++++++++-- 3 files changed, 66 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/docs.go b/docs/docs.go index 9883679..22d4362 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -22,9 +22,6 @@ const docTemplate = `{ "paths": { "/demo": { "get": { - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], @@ -520,6 +517,31 @@ const docTemplate = `{ } } }, + "/search": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "search" + ], + "summary": "Get all user and map data.", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/models.Response" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/models.Response" + } + } + } + } + }, "/users/{id}": { "get": { "consumes": [ diff --git a/docs/swagger.json b/docs/swagger.json index e4bbb59..0bebe1c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -15,9 +15,6 @@ "paths": { "/demo": { "get": { - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], @@ -513,6 +510,31 @@ } } }, + "/search": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "search" + ], + "summary": "Get all user and map data.", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/models.Response" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/models.Response" + } + } + } + } + }, "/users/{id}": { "get": { "consumes": [ diff --git a/docs/swagger.yaml b/docs/swagger.yaml index e24ca39..f719008 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -143,8 +143,6 @@ info: paths: /demo: get: - consumes: - - application/json produces: - application/json responses: @@ -441,6 +439,22 @@ paths: summary: Update country code of session user. tags: - users + /search: + get: + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/models.Response' + "400": + description: Bad Request + schema: + $ref: '#/definitions/models.Response' + summary: Get all user and map data. + tags: + - search /users/{id}: get: consumes: -- cgit v1.2.3