diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-20 20:53:00 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-21 23:57:47 +0300 |
| commit | 4004ac9b925f6f9377533ce9ff349a5db681e7d4 (patch) | |
| tree | 21aeaf9998fe098dbb0b999b5b1ea965fe957bb5 /docs/docs.go | |
| parent | fix: empty country code on user creation (#36) (diff) | |
| download | lphub-4004ac9b925f6f9377533ce9ff349a5db681e7d4.tar.gz lphub-4004ac9b925f6f9377533ce9ff349a5db681e7d4.tar.bz2 lphub-4004ac9b925f6f9377533ce9ff349a5db681e7d4.zip | |
doc: add auth header fields (#34)
Diffstat (limited to '')
| -rw-r--r-- | docs/docs.go | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/docs/docs.go b/docs/docs.go index 70a7267..5cf5e50 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | // Code generated by swaggo/swag. DO NOT EDIT. | 1 | // Package docs GENERATED BY SWAG; DO NOT EDIT |
| 2 | 2 | // This file was generated by swaggo/swag | |
| 3 | package docs | 3 | package docs |
| 4 | 4 | ||
| 5 | import "github.com/swaggo/swag" | 5 | import "github.com/swaggo/swag" |
| @@ -148,11 +148,17 @@ const docTemplate = `{ | |||
| 148 | "summary": "Post record with demo of a specific map.", | 148 | "summary": "Post record with demo of a specific map.", |
| 149 | "parameters": [ | 149 | "parameters": [ |
| 150 | { | 150 | { |
| 151 | "type": "string", | ||
| 152 | "description": "JWT Token", | ||
| 153 | "name": "Authorization", | ||
| 154 | "in": "header", | ||
| 155 | "required": true | ||
| 156 | }, | ||
| 157 | { | ||
| 151 | "type": "array", | 158 | "type": "array", |
| 152 | "items": { | 159 | "items": { |
| 153 | "type": "file" | 160 | "type": "file" |
| 154 | }, | 161 | }, |
| 155 | "collectionFormat": "csv", | ||
| 156 | "description": "Demos", | 162 | "description": "Demos", |
| 157 | "name": "demos", | 163 | "name": "demos", |
| 158 | "in": "formData", | 164 | "in": "formData", |
| @@ -230,6 +236,15 @@ const docTemplate = `{ | |||
| 230 | "application/json" | 236 | "application/json" |
| 231 | ], | 237 | ], |
| 232 | "summary": "Get profile page of session user.", | 238 | "summary": "Get profile page of session user.", |
| 239 | "parameters": [ | ||
| 240 | { | ||
| 241 | "type": "string", | ||
| 242 | "description": "JWT Token", | ||
| 243 | "name": "Authorization", | ||
| 244 | "in": "header", | ||
| 245 | "required": true | ||
| 246 | } | ||
| 247 | ], | ||
| 233 | "responses": { | 248 | "responses": { |
| 234 | "200": { | 249 | "200": { |
| 235 | "description": "OK", | 250 | "description": "OK", |
| @@ -274,6 +289,13 @@ const docTemplate = `{ | |||
| 274 | "parameters": [ | 289 | "parameters": [ |
| 275 | { | 290 | { |
| 276 | "type": "string", | 291 | "type": "string", |
| 292 | "description": "JWT Token", | ||
| 293 | "name": "Authorization", | ||
| 294 | "in": "header", | ||
| 295 | "required": true | ||
| 296 | }, | ||
| 297 | { | ||
| 298 | "type": "string", | ||
| 277 | "description": "Country Code [XX]", | 299 | "description": "Country Code [XX]", |
| 278 | "name": "country_code", | 300 | "name": "country_code", |
| 279 | "in": "query", | 301 | "in": "query", |
| @@ -321,6 +343,15 @@ const docTemplate = `{ | |||
| 321 | "application/json" | 343 | "application/json" |
| 322 | ], | 344 | ], |
| 323 | "summary": "Update profile page of session user.", | 345 | "summary": "Update profile page of session user.", |
| 346 | "parameters": [ | ||
| 347 | { | ||
| 348 | "type": "string", | ||
| 349 | "description": "JWT Token", | ||
| 350 | "name": "Authorization", | ||
| 351 | "in": "header", | ||
| 352 | "required": true | ||
| 353 | } | ||
| 354 | ], | ||
| 324 | "responses": { | 355 | "responses": { |
| 325 | "200": { | 356 | "200": { |
| 326 | "description": "OK", | 357 | "description": "OK", |
| @@ -555,11 +586,9 @@ var SwaggerInfo = &swag.Spec{ | |||
| 555 | BasePath: "/v1", | 586 | BasePath: "/v1", |
| 556 | Schemes: []string{}, | 587 | Schemes: []string{}, |
| 557 | Title: "Least Portals Database API", | 588 | Title: "Least Portals Database API", |
| 558 | Description: "Backend API endpoints for Least Portals Database.", | 589 | Description: "Backend API endpoints for the Least Portals Database.", |
| 559 | InfoInstanceName: "swagger", | 590 | InfoInstanceName: "swagger", |
| 560 | SwaggerTemplate: docTemplate, | 591 | SwaggerTemplate: docTemplate, |
| 561 | LeftDelim: "{{", | ||
| 562 | RightDelim: "}}", | ||
| 563 | } | 592 | } |
| 564 | 593 | ||
| 565 | func init() { | 594 | func init() { |