Open jiaxiaolei opened 7 years ago
The README.md is too simple.
README.md
It's not easy to use the django-rest-swagger-docstring well.
django-rest-swagger-docstring
I come across couples of problems when use it.
Now, the problem below is hard to solved myself.
403 : {"detail":"You do not have permission to perform this action."} http://172.28.32.49:7771/docs/?format=openapi
# curl -iv http://172.28.32.49:7771/docs/ * About to connect() to 172.28.32.49 port 7771 (#0) * Trying 172.28.32.49... * Connected to 172.28.32.49 (172.28.32.49) port 7771 (#0) > GET /docs/ HTTP/1.1 > User-Agent: curl/7.29.0 > Host: 172.28.32.49:7771 > Accept: */* > * HTTP 1.0, assume close after body < HTTP/1.0 403 Forbidden HTTP/1.0 403 Forbidden < Date: Fri, 01 Sep 2017 14:14:52 GMT Date: Fri, 01 Sep 2017 14:14:52 GMT < Server: WSGIServer/0.1 Python/2.7.13 Server: WSGIServer/0.1 Python/2.7.13 < Vary: Accept, Cookie Vary: Accept, Cookie < X-Frame-Options: SAMEORIGIN X-Frame-Options: SAMEORIGIN < Content-Type: application/openapi+json Content-Type: application/openapi+json < Content-Length: 63 Content-Length: 63 < Allow: GET, HEAD, OPTIONS Allow: GET, HEAD, OPTIONS < * Closing connection 0 {"detail":"You do not have permission to perform this action."}
[01/Sep/2017 14:14:52] "GET /docs/ HTTP/1.1" 403 63
In chrome:
[01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/css/typography.css HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/jquery.slideto.min.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/css/reset.css HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/jquery-1.8.0.min.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/object-assign-pollyfill.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/jquery.wiggle.min.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/jquery.ba-bbq.min.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/css/screen.css HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/handlebars-2.0.0.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/lodash.min.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/backbone-min.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/swagger-ui.min.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/js-yaml.min.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/highlight.9.1.0.pack.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/highlight.9.1.0.pack_extended.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/jsoneditor.min.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/marked.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/lib/swagger-oauth.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/init.js HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/images/logo_small.png HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /static/rest_framework_swagger/css/print.css HTTP/1.1" 304 0 [01/Sep/2017 14:15:21] "GET /docs/?format=openapi HTTP/1.1" 403 63
Any fixes to this issue?
The
README.md
is too simple.It's not easy to use the
django-rest-swagger-docstring
well.I come across couples of problems when use it.
Now, the problem below is hard to solved myself.
question:
curl:
In chrome: