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