From 9e8cde3516025a4e36d998a994446a3055eeacb2 Mon Sep 17 00:00:00 2001 From: jain Date: Fri, 7 Jul 2023 17:02:48 +0530 Subject: [PATCH] swagger --- zod_bank/settings.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/zod_bank/settings.py b/zod_bank/settings.py index 3a897cb..6960233 100644 --- a/zod_bank/settings.py +++ b/zod_bank/settings.py @@ -112,6 +112,30 @@ DATABASES = { 'PORT':os.getenv('DB_PORT'), } } + +SWAGGER_SETTINGS = { + "exclude_namespaces": [], + "api_version": '0.1', + "api_path": "", + "enabled_methods": [ + 'get', + 'post', + 'put', + 'patch', + 'delete' + ], + "api_key": '', + "is_authenticated": True, + "is_superuser": False, + + 'SECURITY_DEFINITIONS': { + "api_key": { + "type": "apiKey", + "name": "Authorization", + "in": "header", + }, + }, +} # Password validation # https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators