mirror of
https://github.com/suitenumerique/messages.git
synced 2026-09-26 11:44:55 +02:00
Currently we generate openapi json file only for test purpose so it was relevant to create it within test folders but now we want frontend be able to consume this file so we decide to move it into core root folder.
13 lines
288 B
Bash
Executable File
13 lines
288 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
source "$(dirname "${BASH_SOURCE[0]}")/_config.sh"
|
|
|
|
_dc_run \
|
|
-e DJANGO_CONFIGURATION=Test \
|
|
app-dev \
|
|
python manage.py spectacular \
|
|
--api-version 'v1.0' \
|
|
--urlconf 'core.urls' \
|
|
--format openapi-json \
|
|
--file /app/core/api/openapi.json
|