# # Copyright (c) 2016-2024 Linagora # # This program/library is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 2.1 of the License, or (at your # option) any later version. # # This program/library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License # for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this program/library; If not, see http://www.gnu.org/licenses/ # for the GNU Lesser General Public License version 2.1. # This project provides an Rest server acting as an EDM (Electronic Document Management) system providing following resources: - http://localhost:8686/library/{library}/document : - POST: To upload a document in the library identified by {library} - http://localhost:8686/library/{library}/document/{reference} : - GET: To get the document identified by {reference} of the library {library} - DELETE: To delete the document identified by {reference} of the library {library} - http://localhost:8686/library/{library}/document/{reference}/metadata : - GET: To get the metadatas of the document identified by {reference} of the library {library} - PUT: To set (replace) the metadatas of the document identified by {reference} of the library {library} The REST server is protected by a basic authentication: - all resources can be accessed publicly for GET operations, - other operations on resource 'Document' and 'DocumentMetadata' require the role 'ADMIN_DOC' - other operations on resource 'Library' require the role 'ADMIN_LIB' Available users are: - admin-lib/secret : a user with role ADMIN_LIB, - admin-doc/secret : a user with role ADMIN_DOC, - */secret : guest user that can do any GET request. To launch the web-service server: "mvn clean verify exec:java"