🔧(swagger) activate swagger in staging
activate swagger in staging for devs from other teams to build interop more easily
This commit is contained in:
committed by
Marie
parent
7d3f10a4b6
commit
55b7d1adbd
@@ -16,6 +16,7 @@ pytestmark = pytest.mark.django_db
|
|||||||
def test_openapi_client_schema():
|
def test_openapi_client_schema():
|
||||||
"""
|
"""
|
||||||
Generated and served OpenAPI client schema should be correct.
|
Generated and served OpenAPI client schema should be correct.
|
||||||
|
The spectacular command reloads test env.
|
||||||
"""
|
"""
|
||||||
# Start by generating the swagger.json file
|
# Start by generating the swagger.json file
|
||||||
output = StringIO()
|
output = StringIO()
|
||||||
|
|||||||
@@ -76,7 +76,10 @@ class Base(Configuration):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
USE_SWAGGER = False
|
USE_SWAGGER = values.BooleanValue(
|
||||||
|
default=False,
|
||||||
|
environ_name="USE_SWAGGER",
|
||||||
|
)
|
||||||
|
|
||||||
API_VERSION = "v1.0"
|
API_VERSION = "v1.0"
|
||||||
|
|
||||||
@@ -651,8 +654,6 @@ class Development(Base):
|
|||||||
|
|
||||||
SESSION_COOKIE_NAME = "people_sessionid"
|
SESSION_COOKIE_NAME = "people_sessionid"
|
||||||
|
|
||||||
USE_SWAGGER = True
|
|
||||||
|
|
||||||
# this is a dev credentials for mail provisioning API
|
# this is a dev credentials for mail provisioning API
|
||||||
MAIL_PROVISIONING_API_CREDENTIALS = "bGFfcmVnaWU6cGFzc3dvcmQ="
|
MAIL_PROVISIONING_API_CREDENTIALS = "bGFfcmVnaWU6cGFzc3dvcmQ="
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user