From 4004ac9b925f6f9377533ce9ff349a5db681e7d4 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 20 Apr 2023 20:53:00 +0300 Subject: doc: add auth header fields (#34) --- docs/docs.go | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) (limited to 'docs/docs.go') 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 @@ -// Code generated by swaggo/swag. DO NOT EDIT. - +// Package docs GENERATED BY SWAG; DO NOT EDIT +// This file was generated by swaggo/swag package docs import "github.com/swaggo/swag" @@ -147,12 +147,18 @@ const docTemplate = `{ ], "summary": "Post record with demo of a specific map.", "parameters": [ + { + "type": "string", + "description": "JWT Token", + "name": "Authorization", + "in": "header", + "required": true + }, { "type": "array", "items": { "type": "file" }, - "collectionFormat": "csv", "description": "Demos", "name": "demos", "in": "formData", @@ -230,6 +236,15 @@ const docTemplate = `{ "application/json" ], "summary": "Get profile page of session user.", + "parameters": [ + { + "type": "string", + "description": "JWT Token", + "name": "Authorization", + "in": "header", + "required": true + } + ], "responses": { "200": { "description": "OK", @@ -272,6 +287,13 @@ const docTemplate = `{ ], "summary": "Update country code of session user.", "parameters": [ + { + "type": "string", + "description": "JWT Token", + "name": "Authorization", + "in": "header", + "required": true + }, { "type": "string", "description": "Country Code [XX]", @@ -321,6 +343,15 @@ const docTemplate = `{ "application/json" ], "summary": "Update profile page of session user.", + "parameters": [ + { + "type": "string", + "description": "JWT Token", + "name": "Authorization", + "in": "header", + "required": true + } + ], "responses": { "200": { "description": "OK", @@ -555,11 +586,9 @@ var SwaggerInfo = &swag.Spec{ BasePath: "/v1", Schemes: []string{}, Title: "Least Portals Database API", - Description: "Backend API endpoints for Least Portals Database.", + Description: "Backend API endpoints for the Least Portals Database.", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, - LeftDelim: "{{", - RightDelim: "}}", } func init() { -- cgit v1.2.3