Skip to content

maginc/File_monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File monitor

File system monitor with REST API, detects changes in added folders,
information about folders is accessible thought REST API.
Can be used with UNIX file system as well as Windows,
All display paths is unix style.

Made with:

Spring Boot, Elastic Search 7, PostgreSQL, Java 8

REST API description

How To

  1. Run elastic on your system
  2. Create index on first start
  3. Add folder
  4. Navigate thought filesystem

Elastic Search 7.6.1

Download ES 7.6.1 and run it.
Default port is 9200

POST /v1/index

Will create elasticsearch index

POST /v1/catalog

This will add catalog Requires json body to be send with name of catalog and path:
{"name":"MyCatalog", "path":"D:\\Mycatalog"}
Name and real name of catalog can differ.

GET /v1/catalog/all

Get list of added catalogs

GET /v1/nav/:rootCatalogName

Get only folders from particular root catalog

GET /v1/explorer/:path

File explorer. Everything after /explorer/ is treated as "parent" property from elastic mapping.

EXAMPLE:
/v1/explorer/Test/ will get all content from "Test" folder
/v1/explorer/Test/Sub will get content from "/Test/Sub" folder
/v1/explorer/Test/Sub2 will get content from "/Test/Sub2" folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages