Add type casting to ExternalObjectListSerializerMixin via
the external_object_list_pk_type option.
Add an ExternalObjectSerializeMixin for related objects.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
- Add back support for API views but using the
api_urlpatterns list. Needed for the current user
API until a dynamic route router is implemented that
can allow a viewset action to specify its entire URL.
- Make sure the user is authenticated before
trying to the user permissions.
- Improve how external_object_list options are read from
the class.
- None authenticated users will get a blank queryset if the
view doesn't require a permission.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Remove the APIRoot view.
Remove the Endpoint class.
Remove the EndpointSerializer.
Move API documentation generation from the root urls module
to the app's urls module.
Update the app API URL generation to be based on viewsets
instead of an custom api_urls list.
Remove MayanObjectPermissionsFilter and replace it with
MayanViewSetObjectPermissionsFilter which allows mapping
a required permission to a specific viewset action.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>