* Initial Refactor Step * Add descriptor class * call from generator * proxy back to generator for implementation. * Move `get_link` to descriptor * Move `get_description` to descriptor * Remove need for generator in get_description * Move get_path_fields to descriptor * Move `get_serializer_fields` to descriptor * Move `get_pagination_fields` to descriptor * Move `get_filter_fields` to descriptor * Move `get_encoding` to descriptor. * Pass just `url` from SchemaGenerator to descriptor * Make `view` a property Encapsulates check for a view instance. * Adjust API Reference docs * Add `ManualSchema` class * Refactor to `ViewInspector` plus `AutoSchema` The interface then is **just** `get_link()` * Add `manual_fields` kwarg to AutoSchema * Add schema decorator for FBVs * Adjust comments * Docs: Provide full params in example Ref feedback https://github.com/encode/django-rest-framework/pull/5354/files/b52e372f8f936204753b17fe7c9bfb517b93a045#r137254795 * Add docstring for ViewInstpector.__get__ descriptor method. Ref https://github.com/encode/django-rest-framework/pull/5354#discussion_r137265022 * Make `schemas` a package. * Split generators, inspectors, views. * Adjust imports * Rename to EndpointEnumerator * Adjust ManualSchema to take `fields` … and `description`. Allows `url` and `action` to remain dynamic * Add package/module docstrings
Name |
Last commit
|
Last update |
---|---|---|
.tx | Loading commit data... | |
docs | Loading commit data... | |
docs_theme | Loading commit data... | |
licenses | Loading commit data... | |
requirements | Loading commit data... | |
rest_framework | Loading commit data... | |
tests | Loading commit data... | |
.gitignore | Loading commit data... | |
.isort.cfg | Loading commit data... | |
.travis.yml | Loading commit data... | |
CONTRIBUTING.md | Loading commit data... | |
ISSUE_TEMPLATE.md | Loading commit data... | |
LICENSE.md | Loading commit data... | |
MANIFEST.in | Loading commit data... | |
PULL_REQUEST_TEMPLATE.md | Loading commit data... | |
README.md | Loading commit data... | |
codecov.yml | Loading commit data... | |
mkdocs.yml | Loading commit data... | |
requirements.txt | Loading commit data... | |
runtests.py | Loading commit data... | |
setup.cfg | Loading commit data... | |
setup.py | Loading commit data... | |
tox.ini | Loading commit data... |