All checks were successful
Mostovik Backend CI/CD / Tests and lint (push) Successful in 3m55s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Successful in 3m43s
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped
Mostovik Backend CI/CD / Deploy customer main (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Successful in 1m45s
15 lines
380 B
Python
15 lines
380 B
Python
"""Serve the canonical, CI-verified OpenAPI artifact bundled with this release."""
|
|
|
|
from pathlib import Path
|
|
|
|
from django.http import FileResponse
|
|
from django.views.decorators.http import require_GET
|
|
|
|
|
|
@require_GET
|
|
def canonical_openapi(request):
|
|
return FileResponse(
|
|
Path(__file__).with_name("openapi.json").open("rb"),
|
|
content_type="application/json",
|
|
)
|