File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -905,7 +905,10 @@ INSTALLED_APPS = [
905
905
]
906
906
```
907
907
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
909
912
910
913
``` python
911
914
REST_FRAMEWORK = {
@@ -916,7 +919,7 @@ REST_FRAMEWORK = {
916
919
917
920
### View-based
918
921
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
920
923
initializer:
921
924
922
925
``` python
@@ -955,8 +958,6 @@ To generate an OAS schema document, use something like:
955
958
$ django-admin generateschema --settings=example.settings >myschema.yaml
956
959
```
957
960
958
-
959
-
960
961
You can then use any number of OAS tools such as
961
962
[ swagger-ui-watcher] ( https://www.npmjs.com/package/swagger-ui-watcher )
962
963
to render the schema:
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ known_first_party = rest_framework_json_api
23
23
# This is to "trick" isort into putting example below DJA imports.
24
24
known_localfolder = example
25
25
known_standard_library = mock
26
- known_third_party = rest_condition
27
26
line_length = 100
28
27
multi_line_output = 3
29
28
skip =
You can’t perform that action at this time.
0 commit comments