This is a plugin for Dicoogle that provides a web service for storage listing.
This is a maven project. Simply run the following command:
mvn install
Pass the jar file with dependencies, named with the pattern "list-{vvvvvv}-jar-with-dependencies.jar", to the "Plugins" folder in Dicoogle's working directory.
This plugin requires no configurations.
Retrieve the list of files at the base URI.
Query string parameters:
- uri : the URI of the root (e.g.
file:/CT/20150101
); - depth (optional): the maximum depth of the listed files relative to the base URI, use 0 or negative for unlimited depth;
- psize (optional): the maximum number of files to list in the output;
- poffset (optional): can be used to skip the first
poffset
files.
Examples:
For the following files in the file:
store:
/test.dcm
/CT/
|- 001.dcm
|- 002.dcm
\- 20150514/
\- 001.dcm
/MR/
\- 0.dcm
{
"uri": "file:/",
"files": [
"file:/test.dcm",
"file:/CT/001.dcm",
"file:/CT/002.dcm",
"file:/CT/20150514/001.dcm",
"file:/MR/0.dcm"
]
}
{
"uri": "file:/",
"files": [
"file:/test.dcm",
]
}
{
"uri": "file:/CT",
"files": [
"file:/CT/001.dcm",
"file:/CT/002.dcm",
"file:/CT/20150514/001.dcm"
]
}
{
"uri": "file:/CT",
"files": [
"file:/CT/001.dcm",
"file:/CT/002.dcm"
]
}
{
"uri": "file:/",
"files": [
"file:/test.dcm",
"file:/CT/001.dcm"
]
}
{
"uri": "file:/CT",
"files": [
"file:/CT/002.dcm",
"file:/CT/20150514/001.dcm"
]
}