diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-17 12:30:25 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-17 12:30:25 +0300 |
| commit | 1f47d78a5f82998fe62fefe6d6f076583c101800 (patch) | |
| tree | f20dafaeccc264ce6b05c1b599e9cf31286c22f3 /docs | |
| parent | feat: update main (diff) | |
| download | lphub-1f47d78a5f82998fe62fefe6d6f076583c101800.tar.gz lphub-1f47d78a5f82998fe62fefe6d6f076583c101800.tar.bz2 lphub-1f47d78a5f82998fe62fefe6d6f076583c101800.zip | |
feat: search with query (#40)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/docs.go | 10 | ||||
| -rw-r--r-- | docs/swagger.json | 10 | ||||
| -rw-r--r-- | docs/swagger.yaml | 7 |
3 files changed, 24 insertions, 3 deletions
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 = `{ | |||
| 651 | "tags": [ | 651 | "tags": [ |
| 652 | "search" | 652 | "search" |
| 653 | ], | 653 | ], |
| 654 | "summary": "Get all user and map data.", | 654 | "summary": "Get all user and map data matching to the query.", |
| 655 | "parameters": [ | ||
| 656 | { | ||
| 657 | "type": "string", | ||
| 658 | "description": "Search user or map name.", | ||
| 659 | "name": "q", | ||
| 660 | "in": "query" | ||
| 661 | } | ||
| 662 | ], | ||
| 655 | "responses": { | 663 | "responses": { |
| 656 | "200": { | 664 | "200": { |
| 657 | "description": "OK", | 665 | "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 @@ | |||
| 644 | "tags": [ | 644 | "tags": [ |
| 645 | "search" | 645 | "search" |
| 646 | ], | 646 | ], |
| 647 | "summary": "Get all user and map data.", | 647 | "summary": "Get all user and map data matching to the query.", |
| 648 | "parameters": [ | ||
| 649 | { | ||
| 650 | "type": "string", | ||
| 651 | "description": "Search user or map name.", | ||
| 652 | "name": "q", | ||
| 653 | "in": "query" | ||
| 654 | } | ||
| 655 | ], | ||
| 648 | "responses": { | 656 | "responses": { |
| 649 | "200": { | 657 | "200": { |
| 650 | "description": "OK", | 658 | "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: | |||
| 574 | - users | 574 | - users |
| 575 | /search: | 575 | /search: |
| 576 | get: | 576 | get: |
| 577 | parameters: | ||
| 578 | - description: Search user or map name. | ||
| 579 | in: query | ||
| 580 | name: q | ||
| 581 | type: string | ||
| 577 | produces: | 582 | produces: |
| 578 | - application/json | 583 | - application/json |
| 579 | responses: | 584 | responses: |
| @@ -590,7 +595,7 @@ paths: | |||
| 590 | description: Bad Request | 595 | description: Bad Request |
| 591 | schema: | 596 | schema: |
| 592 | $ref: '#/definitions/models.Response' | 597 | $ref: '#/definitions/models.Response' |
| 593 | summary: Get all user and map data. | 598 | summary: Get all user and map data matching to the query. |
| 594 | tags: | 599 | tags: |
| 595 | - search | 600 | - search |
| 596 | /token: | 601 | /token: |