Skip to content

Simple service to list content of CIFS shares as JSON (or download files) or downoload XML files and return as JSON back to Sesam

License

Notifications You must be signed in to change notification settings

timurgen/sesam-cifs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sesam-cifs

Simple service to list content of CIFS shares as JSON (or download files)

Available endpoints:

  • /list/{share}/{path to dir} - to list share content
  • /get/{share}/{path to file} - to download file from given share
  • /transformandload/{share} - retrivece iDoc files stored as XML and convert them into JSON form

System Setup

{
  "_id": "<system name>",
  "type": "system:microservice",
  "docker": {
    "environment": {
      "CIFS_DOMAIN": "",
      "CIFS_HOSTNAME": "<host name>",
      "CIFS_PASSWORD": "$SECRET(password)",
      "CIFS_USERNAME": "JonSnow"
    },
    "image": "<image name:tag>",
    "port": 8080
  },
  "verify_ssl": true
}

Pipe Setup

{
  "_id": "<name>",
  "type": "pipe",
  "source": {
    "type": "json",
    "system": "<system name>",
    "url": "/list/ShareName/Path/To/Folder"
  },
  "transform": {
    "type": "dtl",
    "rules": {
      "default": [
        ["add", "_id", "_S.name"]
      ]
    }
  }
}

About

Simple service to list content of CIFS shares as JSON (or download files) or downoload XML files and return as JSON back to Sesam

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •