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/swagger.json | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) (limited to 'docs/swagger.json') diff --git a/docs/swagger.json b/docs/swagger.json index 861610b..82fb64c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "description": "Backend API endpoints for Least Portals Database.", + "description": "Backend API endpoints for the Least Portals Database.", "title": "Least Portals Database API", "contact": {}, "license": { @@ -140,12 +140,18 @@ ], "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", @@ -223,6 +229,15 @@ "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", @@ -265,6 +280,13 @@ ], "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]", @@ -314,6 +336,15 @@ "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", -- cgit v1.2.3