I just started using swagger for my API documentation. I followed these docs , but more then half of the urls were excluded by swagger.
As you can see in image below, it is showing some urls but few urls are excluded and the urls displayed by swagger do not include full functionality like there is no body part to test the end points. If you click Try it out! it will send the request with blank params (no body to edit request params).
Below is my urls file.
I have used include()
to includes my app urls may be that is the reason but then how it is showing some urls and excluding some.
urlpatterns = [
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^api/v3/', include('identify.routers_v3', namespace='v3')),
# swagger schema url
url(r'^docs/', schema_view),
]
I have also checked the console and there are no errors in console. Also I am using djnago rest APIView
Error which I am getting in swagger browser screen is
{"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://local.app.in:8000/docs/?format=openapi"}]}