Render OpenAPI Schema with Swagger UI#427
Conversation
modern support for generating OpenAPI Schema
excluded get_transient legacy endpoint due to plans for removal
…erializers avoid incorrect output by drf-spectacular
|
Please use a code linter like flake8 and autopep8 in your IDE so we don't have to make commits like cfb5d4e. |
|
Are the new serializer functions like |
|
They are independent. I introduced the nested serializers to address warnings with the drf-spectacular module that were occurring due to the default name for nested serializers simply being 'NestedSerializer' leading to conflict and incorrect output on swagger-ui. That being said these aren't strictly necessary, as without them swagger ui would not display nested serializers properly which may be acceptable for our usage of it. |




Addresses #418
Incorporated new drf-spectacular module to render OpenAPI Spec, as a result new nested serializers had to be added to serializers.py
Extended schema to incorporate view functions not automatically caught by drf-spectacular, excluded transient get legacy endpoint