🔧(swagger) activate swagger in staging

activate swagger in staging for devs from other teams to build interop
more easily
This commit is contained in:
Marie PUPO JEAMMET
2025-02-14 18:17:32 +01:00
committed by Marie
parent 7d3f10a4b6
commit 55b7d1adbd
2 changed files with 5 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ pytestmark = pytest.mark.django_db
def test_openapi_client_schema():
"""
Generated and served OpenAPI client schema should be correct.
The spectacular command reloads test env.
"""
# Start by generating the swagger.json file
output = StringIO()

View File

@@ -76,7 +76,10 @@ class Base(Configuration):
"""
DEBUG = False
USE_SWAGGER = False
USE_SWAGGER = values.BooleanValue(
default=False,
environ_name="USE_SWAGGER",
)
API_VERSION = "v1.0"
@@ -651,8 +654,6 @@ class Development(Base):
SESSION_COOKIE_NAME = "people_sessionid"
USE_SWAGGER = True
# this is a dev credentials for mail provisioning API
MAIL_PROVISIONING_API_CREDENTIALS = "bGFfcmVnaWU6cGFzc3dvcmQ="