Skip to content

Enet4/dicoogle-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dicoogle File Lister

Java CI with Maven

This is a plugin for Dicoogle that provides a web service for storage listing.

Building

This is a maven project. Simply run the following command:

mvn install

Installing

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.

Configuring

This plugin requires no configurations.

Using the Web Service API

GET /files/list?uri=«uri»

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

GET /files/list?uri=file:/

{
  "uri": "file:/",
  "files": [
    "file:/test.dcm",
    "file:/CT/001.dcm",
    "file:/CT/002.dcm",
    "file:/CT/20150514/001.dcm",
    "file:/MR/0.dcm"
  ]
}

GET /files/list?uri=file:/&depth=1

{
  "uri": "file:/",
  "files": [
    "file:/test.dcm",
  ]
}

GET /files/list?uri=file:/CT&depth=2

{
  "uri": "file:/CT",
  "files": [
    "file:/CT/001.dcm",
    "file:/CT/002.dcm",
    "file:/CT/20150514/001.dcm"
  ]
}

GET /files/list?uri=file:/CT&depth=1

{
  "uri": "file:/CT",
  "files": [
    "file:/CT/001.dcm",
    "file:/CT/002.dcm"
  ]
}

GET /files/list?uri=file:/&psize=2

{
  "uri": "file:/",
  "files": [
    "file:/test.dcm",
    "file:/CT/001.dcm"
  ]
}

GET /files/list?uri=file:/CT&poffset=1

{
  "uri": "file:/CT",
  "files": [
    "file:/CT/002.dcm",
    "file:/CT/20150514/001.dcm"
  ]
}

About

Dicoogle plugin for listing files in storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages