* 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 |
|---|---|---|
| .. | ||
| browsable_api | Loading commit data... | |
| __init__.py | Loading commit data... | |
| conftest.py | Loading commit data... | |
| models.py | Loading commit data... | |
| test_api_client.py | Loading commit data... | |
| test_atomic_requests.py | Loading commit data... | |
| test_authentication.py | Loading commit data... | |
| test_authtoken.py | Loading commit data... | |
| test_bound_fields.py | Loading commit data... | |
| test_compat.py | Loading commit data... | |
| test_decorators.py | Loading commit data... | |
| test_description.py | Loading commit data... | |
| test_encoders.py | Loading commit data... | |
| test_exceptions.py | Loading commit data... | |
| test_fields.py | Loading commit data... | |
| test_filters.py | Loading commit data... | |
| test_generics.py | Loading commit data... | |
| test_htmlrenderer.py | Loading commit data... | |
| test_lazy_hyperlinks.py | Loading commit data... | |
| test_metadata.py | Loading commit data... | |
| test_middleware.py | Loading commit data... | |
| test_model_serializer.py | Loading commit data... | |
| test_multitable_inheritance.py | Loading commit data... | |
| test_negotiation.py | Loading commit data... | |
| test_one_to_one_with_inheritance.py | Loading commit data... | |
| test_pagination.py | Loading commit data... | |
| test_parsers.py | Loading commit data... | |
| test_permissions.py | Loading commit data... | |
| test_prefetch_related.py | Loading commit data... | |
| test_relations.py | Loading commit data... | |
| test_relations_generic.py | Loading commit data... | |
| test_relations_hyperlink.py | Loading commit data... | |
| test_relations_pk.py | Loading commit data... | |
| test_relations_slug.py | Loading commit data... | |
| test_renderers.py | Loading commit data... | |
| test_request.py | Loading commit data... | |
| test_requests_client.py | Loading commit data... | |
| test_response.py | Loading commit data... | |
| test_reverse.py | Loading commit data... | |
| test_routers.py | Loading commit data... | |
| test_schemas.py | Loading commit data... | |
| test_serializer.py | Loading commit data... | |
| test_serializer_bulk_update.py | Loading commit data... | |
| test_serializer_lists.py | Loading commit data... | |
| test_serializer_nested.py | Loading commit data... | |
| test_settings.py | Loading commit data... | |
| test_status.py | Loading commit data... | |
| test_templatetags.py | Loading commit data... | |
| test_testing.py | Loading commit data... | |
| test_throttling.py | Loading commit data... | |
| test_urlpatterns.py | Loading commit data... | |
| test_utils.py | Loading commit data... | |
| test_validation.py | Loading commit data... | |
| test_validation_error.py | Loading commit data... | |
| test_validators.py | Loading commit data... | |
| test_versioning.py | Loading commit data... | |
| test_views.py | Loading commit data... | |
| test_viewsets.py | Loading commit data... | |
| test_write_only_fields.py | Loading commit data... | |
| urls.py | Loading commit data... | |
| utils.py | Loading commit data... |