Skip to content

Store Service

This microservice provides the ability to store, upload, update, delete, and retrieve information about files.


Main Functions

  • Retrieve files and directories
  • Get detailed information about a file or directory
  • View all files and folders within a directory
  • Paginate files for display
  • Upload new files
  • Update file names
  • Create new directories or manage existing ones
  • Delete files or directories

How It Works

  • Files are stored in a designated folder and managed via paths
  • Uploaded file names are sanitized and, if necessary, Cyrillic characters are converted to Latin
  • Checks if the file or directory already exists and returns an error if so
  • When retrieving files, images are displayed in the browser, while other file types are provided as downloadable attachments
  • Returns information about files and directories, including name, path, size, type, and number of contained items
  • Supports viewing and paginating files
  • All operations are logged, and errors are sent to the monitoring system

Supported Types

  • File
  • Directory

Security and Error Handling

  • Returns appropriate errors if a file or directory is not found
  • Returns an error if a file or directory already exists
  • All operations are logged and traceable within the system