* 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 |
---|---|---|
.. | ||
authtoken | Loading commit data... | |
locale | Loading commit data... | |
schemas | Loading commit data... | |
static/rest_framework | Loading commit data... | |
templates/rest_framework | Loading commit data... | |
templatetags | Loading commit data... | |
utils | Loading commit data... | |
__init__.py | Loading commit data... | |
authentication.py | Loading commit data... | |
compat.py | Loading commit data... | |
decorators.py | Loading commit data... | |
documentation.py | Loading commit data... | |
exceptions.py | Loading commit data... | |
fields.py | Loading commit data... | |
filters.py | Loading commit data... | |
generics.py | Loading commit data... | |
metadata.py | Loading commit data... | |
mixins.py | Loading commit data... | |
models.py | Loading commit data... | |
negotiation.py | Loading commit data... | |
pagination.py | Loading commit data... | |
parsers.py | Loading commit data... | |
permissions.py | Loading commit data... | |
relations.py | Loading commit data... | |
renderers.py | Loading commit data... | |
request.py | Loading commit data... | |
response.py | Loading commit data... | |
reverse.py | Loading commit data... | |
routers.py | Loading commit data... | |
serializers.py | Loading commit data... | |
settings.py | Loading commit data... | |
status.py | Loading commit data... | |
test.py | Loading commit data... | |
throttling.py | Loading commit data... | |
urlpatterns.py | Loading commit data... | |
urls.py | Loading commit data... | |
validators.py | Loading commit data... | |
versioning.py | Loading commit data... | |
views.py | Loading commit data... | |
viewsets.py | Loading commit data... |