Skip to content

edbutcher/gallery_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to deploy:

virtualenv run

source run/bin/activate

pip install -r requirements.txt

python main.py

API URLS:

GET /file_info/<file_id>

Get JSON with file_information:

{
    "fileName": "dby40pu-05981e7e-cdce-45fc-ae7f-490c9864ce34.jpg",
    "type": "image/jpeg",
    "fileId": "3f61cf85ced54f89b39e3a8ebc4f7cfd"
}

GET /file_info

Get JSON with all files information

[
  {
    "fileName": "dby40pu-05981e7e-cdce-45fc-ae7f-490c9864ce34.jpg",
    "type": "image/jpeg",
    "fileId": "3f61cf85ced54f89b39e3a8ebc4f7cfd"
  },
  {
    "fileName": "photo_2018-11-01_13-14-50.jpg",
    "type": "image/jpeg",
    "fileId": "9677daefd0c84b7fbdf5038315b7511f"
  }
]

POST /upload_file

Endpoint for file upload form Returns file info JSON

GET /file/<file_name>

Endpoint for serving files by name

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages