From 1f47d78a5f82998fe62fefe6d6f076583c101800 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sat, 17 Jun 2023 12:30:25 +0300 Subject: feat: search with query (#40) --- docs/docs.go | 10 +++++++++- docs/swagger.json | 10 +++++++++- docs/swagger.yaml | 7 ++++++- 3 files changed, 24 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/docs.go b/docs/docs.go index d39fd1c..34aa7f4 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -651,7 +651,15 @@ const docTemplate = `{ "tags": [ "search" ], - "summary": "Get all user and map data.", + "summary": "Get all user and map data matching to the query.", + "parameters": [ + { + "type": "string", + "description": "Search user or map name.", + "name": "q", + "in": "query" + } + ], "responses": { "200": { "description": "OK", diff --git a/docs/swagger.json b/docs/swagger.json index ad2a659..8491d2e 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -644,7 +644,15 @@ "tags": [ "search" ], - "summary": "Get all user and map data.", + "summary": "Get all user and map data matching to the query.", + "parameters": [ + { + "type": "string", + "description": "Search user or map name.", + "name": "q", + "in": "query" + } + ], "responses": { "200": { "description": "OK", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index d62b46b..597df9f 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -574,6 +574,11 @@ paths: - users /search: get: + parameters: + - description: Search user or map name. + in: query + name: q + type: string produces: - application/json responses: @@ -590,7 +595,7 @@ paths: description: Bad Request schema: $ref: '#/definitions/models.Response' - summary: Get all user and map data. + summary: Get all user and map data matching to the query. tags: - search /token: -- cgit v1.2.3