REST API for Document Management System
This api is utilized for managing documents, users and roles for a simple project. It utilizes mongodb document models, and is built on an express server.
The usage of the application is as follows:
- Users can be created by post requests to /dmsapi/users
Note : Admin user must be created first
Admin user then creates all roles
- Users are retrieved and updated via get and put requests to /dmsapi/(userid)
- Admin users can only be created by Admin users
- Users can create documents and assign access roles
- Users can view and update documents with user role defined
- Users can delete documents with sole access (i.e user and Admin)
- Users cannot delete documents with shared access
- Non Authenticated users have no CRUD access
- Admin user have all CRUD privileges
I'd love if you contribute to the source code and make the API even better than it is If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to the GitHub Repository. Even better you can submit a Pull Request with a fix.