feat: complete published registry contracts and gated SRO ingestion
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

This commit is contained in:
Aleksandr Meshchryakov
2026-09-14 17:01:02 +02:00
parent 49cbfd265c
commit 18971d33ec
76 changed files with 33156 additions and 311 deletions

20437
src/core/openapi.json Normal file

File diff suppressed because it is too large Load Diff

14
src/core/schema.py Normal file
View File

@@ -0,0 +1,14 @@
"""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",
)

View File

@@ -12,6 +12,8 @@ from drf_yasg import openapi
from drf_yasg.views import get_schema_view
from rest_framework import permissions
from core.schema import canonical_openapi
api_info = openapi.Info(
title="Mostovik API",
default_version="v1",
@@ -42,6 +44,7 @@ schema_view = get_schema_view(
)
urlpatterns = [
path("openapi.json", canonical_openapi, name="canonical-openapi"),
path(
"",
schema_view.with_ui("swagger", cache_timeout=0),