Skip to content

Commit c95e485

Browse files
committed
More README.md
1 parent 4491360 commit c95e485

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ DRF's TokenAuthentication is enabled, so you will need to create a token for the
2929
done by visiting http://localhost:8000/admin/authtoken/tokenproxy/ and creating a token for the superuser.
3030
Then you can use the generated client to access the API.
3131

32+
## Making a Client from the OpenAPI Schema
33+
34+
The OpenAPI schema can be used to generate a client. For example, you can use https://app.swaggerhub.com/ to generate
35+
client libraries.
36+
37+
https://marcomuellner.github.io/openapi-python-generator/quick_start/ looks interesting, but I haven't tried it.
38+
39+
## Notes
40+
41+
- Swaggerhub didn't like endpoints supporting multiple media_types, so I just disabled all but JSONParser via
42+
`drf_endpoint_examples.openapi.ChoicesAutoSchema.map_parsers`.
43+
3244
## Testing
3345

3446
The tests are basically worthless, but they do run. To run them:

0 commit comments

Comments
 (0)