- Move all generic API classes definitions to the rest_api.generics
module.
- Update API status code on insufficient access for the apps:
indexes, parsing, documents, metadata, ocr, permission,
user management.
- Update API tests.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
Soleve issue of removing an optional document metadata
from a document that also contained existing required metadata.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Add keyword arguments. Sort arguments and models.
Move literals to their own module. Prepend handler_ to
signal handlers.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Perform model validation on document type metadata type and
document type API endpoints.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>