Roberto Rosario
ee2637dddc
Common: Improve API view and tests
...
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2019-02-06 21:57:02 -04:00
Roberto Rosario
7c4ae1aef0
Update common app API to viewsets
...
Update the API entries for content types and templates to use
viewsets and the new api_router_entries URL registraion
method.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2019-01-19 01:04:59 -04:00
Roberto Rosario
6dcd8bd9aa
Add a template list API view
...
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-24 19:18:36 -04:00
Roberto Rosario
15b9c0c56f
Only render the Template API view for authenticated users. Thanks rgarcia for the report.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-10-09 19:10:35 -04:00
Roberto Rosario
fafdb538b3
Generalize the Javascript menu rendering into an API for templates that only refresh the menu when there are changes. Closes GitLab issue #511 . Thanks to Daniel Carrico @daniel1113 for the report.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-16 21:48:37 -04:00
Michael Price
1fc06a350b
Consolidate the docstring of the API methods into a class docstring.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:22:35 -04:00
Roberto Rosario
3a13027be0
Add content type list API view to the common app.
2017-01-28 22:55:48 -04:00