コード例 #1
0
])
router.register('statussen', StatusViewSet)
router.register('zaakobjecten', ZaakObjectViewSet)
router.register('klantcontacten', KlantContactViewSet)
router.register('rollen', RolViewSet)
router.register('resultaten', ResultaatViewSet)

# TODO: the EndpointEnumerator seems to choke on path and re_path

urlpatterns = [
    url(
        r'^v(?P<version>\d+)/',
        include([

            # API documentation
            url(r'^schema/openapi(?P<format>\.json|\.yaml)$',
                SchemaView.without_ui(cache_timeout=None),
                name='schema-json'),
            url(r'^schema/$',
                SchemaView.with_ui('redoc', cache_timeout=None),
                name='schema-redoc'),

            # actual API
            url(r'^', include(router.urls)),

            # should not be picked up by drf-yasg
            path('', include('vng_api_common.api.urls')),
            path('', include('vng_api_common.notifications.api.urls')),
        ])),
]
コード例 #2
0
ファイル: urls.py プロジェクト: maykinmedia/zaken-api
router.register("rollen", RolViewSet)
router.register("resultaten", ResultaatViewSet)
router.register("zaakinformatieobjecten", ZaakInformatieObjectViewSet)
router.register("zaakcontactmomenten", ZaakContactMomentViewSet)
router.register("zaakverzoeken", ZaakVerzoekViewSet)

# TODO: the EndpointEnumerator seems to choke on path and re_path

urlpatterns = [
    url(
        r"^v(?P<version>\d+)/",
        include([
            # API documentation
            url(
                r"^schema/openapi(?P<format>\.json|\.yaml)$",
                SchemaView.without_ui(
                    cache_timeout=settings.SPEC_CACHE_TIMEOUT),
                name="schema-json",
            ),
            url(
                r"^schema/$",
                SchemaView.with_ui("redoc",
                                   cache_timeout=settings.SPEC_CACHE_TIMEOUT),
                name="schema-redoc",
            ),
            # actual API
            url(r"^", include(router.urls)),
            # should not be picked up by drf-yasg
            path("", include("vng_api_common.api.urls")),
            path("", include("vng_api_common.notifications.api.urls")),
        ]),
    )
コード例 #3
0
router.register("verzoeken", VerzoekViewSet)
router.register("objectverzoeken", ObjectVerzoekViewSet)
router.register("verzoekinformatieobjecten", VerzoekInformatieObjectViewSet)
router.register("verzoekcontactmomenten", VerzoekContactMomentViewSet)
router.register("verzoekproducten", VerzoekProductViewSet)

# TODO: the EndpointEnumerator seems to choke on path and re_path

urlpatterns = [
    url(
        r"^v(?P<version>\d+)/",
        include([
            # API documentation
            url(
                r"^schema/openapi(?P<format>\.json|\.yaml)$",
                SchemaView.without_ui(cache_timeout=None),
                name="schema-json",
            ),
            url(
                r"^schema/$",
                SchemaView.with_ui("redoc", cache_timeout=None),
                name="schema-redoc",
            ),
            # actual API
            url(r"^", include(router.urls)),
            # should not be picked up by drf-yasg
            path("", include("vng_api_common.api.urls")),
        ]),
    )
]