Skip to content

Latest commit

 

History

History
47 lines (41 loc) · 2.38 KB

README.md

File metadata and controls

47 lines (41 loc) · 2.38 KB

CRUDFileStorage

File storage with key or Authentication Token based access.

  • Authentication Token - user authentication token. Available by /api/token after registration.
  • key - FILE-ACCESS-KEY field in request form-data.

File owner can access all the file, that he uploaded. Any file uploaded with key might be accesses (inc. deleted) by request with key.

  • File owner - user, that used Authentication Token to upload file.

Anonymous user can upload and access their files by the key.

  • Anonymous user - user, that didn't used Authentication Token to upload file.

Requirements:

  • docker
  • docker compose

How to start:

docker compose -f docker-compose.yml up

API:

{
    '/storage': {
        'GET': 'List files',
        'POST': 'Upload file',
    },
    '/storage/*': {
        'DELETE': 'Delete file by id',
        'LINK': 'Download file by id',
    },
    '/profiles': {
        'GET': 'List profiles'
    },
    '/token': {
        'POST': 'Get token',
    },
    '/register': {
        'Register using base auth'
    },
    '/': {
        'GET': 'List available API routines'
    }
}