aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/docs.go28
-rw-r--r--docs/swagger.json28
-rw-r--r--docs/swagger.yaml18
3 files changed, 66 insertions, 8 deletions
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 = `{
22 "paths": { 22 "paths": {
23 "/demo": { 23 "/demo": {
24 "get": { 24 "get": {
25 "consumes": [
26 "application/json"
27 ],
28 "produces": [ 25 "produces": [
29 "application/json" 26 "application/json"
30 ], 27 ],
@@ -520,6 +517,31 @@ const docTemplate = `{
520 } 517 }
521 } 518 }
522 }, 519 },
520 "/search": {
521 "get": {
522 "produces": [
523 "application/json"
524 ],
525 "tags": [
526 "search"
527 ],
528 "summary": "Get all user and map data.",
529 "responses": {
530 "200": {
531 "description": "OK",
532 "schema": {
533 "$ref": "#/definitions/models.Response"
534 }
535 },
536 "400": {
537 "description": "Bad Request",
538 "schema": {
539 "$ref": "#/definitions/models.Response"
540 }
541 }
542 }
543 }
544 },
523 "/users/{id}": { 545 "/users/{id}": {
524 "get": { 546 "get": {
525 "consumes": [ 547 "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 @@
15 "paths": { 15 "paths": {
16 "/demo": { 16 "/demo": {
17 "get": { 17 "get": {
18 "consumes": [
19 "application/json"
20 ],
21 "produces": [ 18 "produces": [
22 "application/json" 19 "application/json"
23 ], 20 ],
@@ -513,6 +510,31 @@
513 } 510 }
514 } 511 }
515 }, 512 },
513 "/search": {
514 "get": {
515 "produces": [
516 "application/json"
517 ],
518 "tags": [
519 "search"
520 ],
521 "summary": "Get all user and map data.",
522 "responses": {
523 "200": {
524 "description": "OK",
525 "schema": {
526 "$ref": "#/definitions/models.Response"
527 }
528 },
529 "400": {
530 "description": "Bad Request",
531 "schema": {
532 "$ref": "#/definitions/models.Response"
533 }
534 }
535 }
536 }
537 },
516 "/users/{id}": { 538 "/users/{id}": {
517 "get": { 539 "get": {
518 "consumes": [ 540 "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:
143paths: 143paths:
144 /demo: 144 /demo:
145 get: 145 get:
146 consumes:
147 - application/json
148 produces: 146 produces:
149 - application/json 147 - application/json
150 responses: 148 responses:
@@ -441,6 +439,22 @@ paths:
441 summary: Update country code of session user. 439 summary: Update country code of session user.
442 tags: 440 tags:
443 - users 441 - users
442 /search:
443 get:
444 produces:
445 - application/json
446 responses:
447 "200":
448 description: OK
449 schema:
450 $ref: '#/definitions/models.Response'
451 "400":
452 description: Bad Request
453 schema:
454 $ref: '#/definitions/models.Response'
455 summary: Get all user and map data.
456 tags:
457 - search
444 /users/{id}: 458 /users/{id}:
445 get: 459 get:
446 consumes: 460 consumes: