It is a Rest API for uploading an Image onto the server with lossless compression. You need to pass a access-token in order to upload file.
Authentication
1. auth/user/signup - POST
2. auth/user/signin - POST -- To Create Access Token
3. user/uploads - GET
Upload
1. service/image - POST, GET
2. service/image/{{upload_id}} - POST, GET
3. service/image/filename - GET
You can also register yourself and generate access key from command line
python manage.py generateToken
- clone repository first
- create a env.py file
HOST = 'localhost'
DEBUG = True
If your host is localhost, then let the host be same or change the host. It you want to run on production, set DEBUG = False.
- pip install -r requirement.txt
python manage.py makemigrations service
python manage migrate