Skip to content
Snippets Groups Projects
Commit b4c85ed0 authored by yvesn's avatar yvesn
Browse files

SSDM-6001: small language corrections

parent d3e21570
No related branches found
No related tags found
No related merge requests found
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
## Introduction ## ## Introduction ##
This project holds is supposed to be used to developed Java micro services. This project is supposed to be used to developed Java micro services.
## Configuration ## ## Configuration ##
A json file with the configuration should be given during the startup as an argument, if not given the default "config.json" will be loaded (mostly used for distribution) and if not found "./conf/config.json" is loaded (mostly used for development). A json file with the configuration should be given during the startup as an argument. If it os not given the default "config.json" will be loaded (mostly used for distribution) and if not found "./conf/config.json" is loaded (mostly used for development).
## Build ## ## Build ##
...@@ -77,13 +77,13 @@ All these handlers share the same configuration and input parameters. ...@@ -77,13 +77,13 @@ All these handlers share the same configuration and input parameters.
### Configuration ### ### Configuration ###
openbis-url : Server where is validated that the user sessionToken can retrieve the dataset. openbis-url : Server to validate that the user sessionToken can retrieve the dataset.
datastore-url : Server where is validated that the user sessionToken can retrieve the file and that the file exists for the given dataset. datastore-url : Server to validate that the user sessionToken can retrieve the file and that the file exists for the given dataset.
services-timeout : Timeout when making calls to openBIS or DSS. services-timeout : Timeout when making calls to openBIS or DSS.
allowedExternalDMSCode : Allowed External DMS code, with the current implementation only one EDMS is possible for the service. allowedExternalDMSCode : Allowed External DMS code. With the current implementation only one EDMS is possible for the service.
allowedContentCopyPath : Allowed directory where dataset files should be present, trying to access outside of this directory giving relative paths will result in failure. allowedContentCopyPath : Allowed directory where dataset files should be present. Trying to access outside of this directory giving relative paths will result in failure.
``` Part of config.json ``` config.json
{ {
"className" : "ch.ethz.sis.microservices.server.services.store.FileInfoHandler", "className" : "ch.ethz.sis.microservices.server.services.store.FileInfoHandler",
"url" : "/file-information", "url" : "/file-information",
...@@ -110,13 +110,13 @@ allowedContentCopyPath : Allowed directory where dataset files should be present ...@@ -110,13 +110,13 @@ allowedContentCopyPath : Allowed directory where dataset files should be present
### Input parameters ### ### Input parameters ###
The service only accepts GET requests, the GET request should contain 5 mandatory parameters. The service only accepts GET requests. The GET request should contain 5 mandatory parameters.
sessionToken : User session token sessionToken : User session token.
datasetPermId : Dataset perm id the file belongs to, if not found on the AS or DSS an exception is thrown. datasetPermId : Dataset perm id the file belongs to. If not found on the AS or DSS an exception is thrown.
externalDMSCode : Should match the configured allowedExternalDMSCode, if not an exception is thrown. externalDMSCode : Should match the configured allowedExternalDMSCode. If not an exception is thrown.
contentCopyPath : Content copy path to access, if not found either AS, DSS or file system an exception is thrown. contentCopyPath : Content copy path to access. If not found either AS, DSS or file system an exception is thrown.
datasetPathToFile : File to access, if not found either on the DSS or file system an exception is thrown. datasetPathToFile : File to access. If not found either on the DSS or file system an exception is thrown.
### Output ch.ethz.sis.microservices.server.services.store.FileInfoHandler ### ### Output ch.ethz.sis.microservices.server.services.store.FileInfoHandler ###
The body of the response will contain a JSON map with information from the file. The body of the response will contain a JSON map with information from the file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment