Debian Codegraph @

tests/urlconfs/legacy_renderer.py

raw
1 from django.urls import path, re_path
2
3 from testproj.urls import SchemaView, required_urlpatterns
4
5 urlpatterns = [
6 re_path(
7 r"^swagger(?P<format>\.json|\.yaml)$",
8 SchemaView.without_ui(cache_timeout=0),
9 name="schema-json",
10 ),
11 path(
12 "swagger/",
13 SchemaView.with_ui("swagger", cache_timeout=0),
14 name="schema-swagger-ui",
15 ),
16 path("redoc/", SchemaView.with_ui("redoc", cache_timeout=0), name="schema-redoc"),
17 path(
18 "redoc-old/",
19 SchemaView.with_ui("redoc-old", cache_timeout=0),
20 name="schema-redoc-old",
21 ),
22 ] + required_urlpatterns