ur += tool_product_urls ur += cred_urls ur += system_settings_urls ur += notifications_urls ur += object_urls ur += benchmark_urls ur += rule_urls ur += notes_urls ur += note_type_urls ur += google_sheets_urls ur += banner_urls swagger_urls = [ url(r'^$', SwaggerView.as_view(), name='index'), url(r'^resources/$', ResourcesView.as_view(), name='resources'), url(r'^schema/(?P<resource>\S+)$', SchemaView.as_view()), url(r'^schema/$', SchemaView.as_view(), name='schema'), ] schema_view = get_schema_view( openapi.Info( title="Defect Dojo API", default_version='v2', description="To use the API you need be authorized.", ), # if public=False, includes only endpoints the current user has access to public=True, # The API of a OpenSource project should be public accessible permission_classes=[permissions.AllowAny], )
ur += test_urls ur += user_urls ur += jira_urls ur += tool_type_urls ur += tool_config_urls ur += tool_product_urls ur += cred_urls ur += system_settings_urls ur += notifications_urls from tastypie_swagger.views import SwaggerView, ResourcesView, SchemaView swagger_urls = [ url(r'^$', SwaggerView.as_view(), name='index'), url(r'^resources/$', ResourcesView.as_view(), name='resources'), url(r'^schema/(?P<resource>\S+)$', SchemaView.as_view()), url(r'^schema/$', SchemaView.as_view(), name='schema'), ] urlpatterns = [ # django admin url(r'^%sadmin/' % get_system_setting('url_prefix'), include(admin.site.urls)), # tastypie api url(r'^%sapi/' % get_system_setting('url_prefix'), include(v1_api.urls)), # api doc urls url(r'%sapi/v1/doc/' % get_system_setting('url_prefix'), include(swagger_urls, namespace='tastypie_swagger'), kwargs={ "tastypie_api_module": "dojo.urls.v1_api",