File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -905,7 +905,10 @@ INSTALLED_APPS = [
905905]
906906```
907907
908- You'll also need to make sure you are using the DJA AutoSchema class, either as the default schema class:
908+ You'll also need to make sure you are using the DJA AutoSchema class, either as the default schema class or
909+ explicitly as a view's ` schema ` :
910+
911+ ### Default schema class
909912
910913``` python
911914REST_FRAMEWORK = {
@@ -916,7 +919,7 @@ REST_FRAMEWORK = {
916919
917920### View-based
918921
919- Or you can explicit use DJA's AutoSchema it in your view definition, possible including an OAS schema document
922+ You can explicitly use DJA's AutoSchema in your view definition, optionally including an OAS schema document
920923initializer:
921924
922925``` python
@@ -955,8 +958,6 @@ To generate an OAS schema document, use something like:
955958$ django-admin generateschema --settings=example.settings >myschema.yaml
956959```
957960
958-
959-
960961You can then use any number of OAS tools such as
961962[ swagger-ui-watcher] ( https://www.npmjs.com/package/swagger-ui-watcher )
962963to render the schema:
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ known_first_party = rest_framework_json_api
2323# This is to "trick" isort into putting example below DJA imports.
2424known_localfolder = example
2525known_standard_library = mock
26- known_third_party = rest_condition
2726line_length = 100
2827multi_line_output = 3
2928skip =
You can’t perform that action at this time.
0 commit comments