Exemplo n.º 1
0
from django.conf.urls import url
from rest_framework_swagger.views import SwaggerResourcesView, SwaggerApiView, SwaggerUIView


urlpatterns = [
    url(r'^$', SwaggerUIView.as_view(), name="django.swagger.base.view"),
    url(r'^api-docs/$', SwaggerResourcesView.as_view(), name="django.swagger.resources.view"),
    url(r'^api-docs/(?P<path>.*)/?$', SwaggerApiView.as_view(), name='django.swagger.api.view'),
]
Exemplo n.º 2
0
from django.conf.urls import patterns
from django.conf.urls import url
from rest_framework_swagger.views import SwaggerResourcesView, SwaggerApiView, SwaggerUIView


urlpatterns = patterns(
    '',
    url(r'^$', SwaggerUIView.as_view(), name="django.swagger.base.view"),
    url(r'^v(?P<version>\d+(\.\d+)?)/$', SwaggerUIView.as_view(), name="django.swagger.base.view__versioned"),
    url(r'^api-docs/v(?P<version>\d+(\.\d+)?)/$', SwaggerResourcesView.as_view(), name="django.swagger.resources.view"),
    url(r'^api-docs/v(?P<version>\d+(\.\d+)?)/(?P<path>.*)/?$', SwaggerApiView.as_view(), name='django.swagger.api.view'),
)
Exemplo n.º 3
0
from django.conf.urls import url
from api_doc.views import MySwaggerResourcesView, MySwaggerUIView

from rest_framework_swagger.views import SwaggerApiView


urlpatterns = [
    url(r"^$", MySwaggerUIView.as_view(), name="django.swagger.base.view"),
    url(r"^api-docs/$", MySwaggerResourcesView.as_view(), name="django.swagger.resources.view"),
    url(r"^api-docs/(?P<path>.*)/?$", SwaggerApiView.as_view(), name="django.swagger.api.view"),
]
Exemplo n.º 4
0
from django.conf.urls import url
from api_doc.views import (MySwaggerResourcesView, MySwaggerUIView)

from rest_framework_swagger.views import SwaggerApiView

urlpatterns = [
    url(r'^$', MySwaggerUIView.as_view(), name="django.swagger.base.view"),
    url(r'^api-docs/$',
        MySwaggerResourcesView.as_view(),
        name="django.swagger.resources.view"),
    url(r'^api-docs/(?P<path>.*)/?$',
        SwaggerApiView.as_view(),
        name='django.swagger.api.view'),
]
Exemplo n.º 5
0
from django.conf.urls import patterns
from rest_framework_swagger.views import SwaggerResourcesView, SwaggerApiView, SwaggerUIView


urlpatterns = patterns('',
    (r'^$', SwaggerUIView.as_view()),
    (r'^api-docs/$', SwaggerResourcesView.as_view()),
    (r'^api-docs/(?P<path>.*)/$', SwaggerApiView.as_view()),
)
Exemplo n.º 6
0
from django.conf.urls import patterns
from rest_framework_swagger.views import SwaggerResourcesView, SwaggerApiView, SwaggerUIView

urlpatterns = patterns(
    '',
    (r'^$', SwaggerUIView.as_view()),
    (r'^api-docs/$', SwaggerResourcesView.as_view()),
    (r'^api-docs/(?P<path>.*)/$', SwaggerApiView.as_view()),
)
Exemplo n.º 7
0
from django.conf.urls import patterns
from django.conf.urls import url
from rest_framework_swagger.views import (
    SwaggerResourcesView, SwaggerApiView, SwaggerUIView
)


urlpatterns = patterns(
    '',

    url(r'^$', SwaggerUIView.as_view(),
        name="django.swagger.view.browser"),

    url(r'^resources/$', SwaggerResourcesView.as_view(),
        name="django.swagger.view.resources"),

    url(r'^resources/(?P<path>.*)/?$', SwaggerApiView.as_view(),
        name='django.swagger.view.resource.api'),
)
Exemplo n.º 8
0
from django.conf.urls import url
from rest_framework_swagger.views import SwaggerApiView, SwaggerUIView


urlpatterns = [
    url(r'^$', SwaggerUIView.as_view(), name="django.swagger.base.view"),
    url(r'^api-docs/?$', SwaggerApiView.as_view(), name="django.swagger.resources.view"),
]
Exemplo n.º 9
0
from django.conf.urls import patterns
from django.conf.urls import url
from rest_framework_swagger.views import SwaggerResourcesView, SwaggerApiView, SwaggerUIView


urlpatterns = patterns(
    '',
    url(r'^$', SwaggerUIView.as_view(), name="django.swagger.base.view"),
    url(r'^api-docs/$', SwaggerResourcesView.as_view(), name="django.swagger.resources.view"),
    url(r'^api-docs/(?P<path>.*)/?$', SwaggerApiView.as_view(), name='django.swagger.api.view'),
    url(r'^v(?P<api_version>[0-9.]+)/$', SwaggerUIView.as_view(), name="django.swagger.base.view"),
    url(r'^v(?P<api_version>[0-9.]+)/api-docs/$', SwaggerResourcesView.as_view(), name="django.swagger.resources.view"),
    url(r'^v(?P<api_version>[0-9.]+)/api-docs/(?P<path>.*)/?$', SwaggerApiView.as_view(), name='django.swagger.api.view'),
)