This is an application that provides APIs to upload videos, list all videos as well as inquire the charges for a video provided
size, length and extension
of the video. This is written using the Django Rest Framework
.
- List all Videos ( GET request ) :-
127.0.0.1:8000/videos
- Upload a Video ( POST request, supports date range filter, size range filter, filter by extension ) :-
127.0.0.1:8000/videos/upload
. Date format should beYear-Month-Day
- Video Charges ( GET request/ size, length and extension query params are mandatory ) :-
127.0.0.1:8000/videos/charges
. Length's format should beMinutes:Seconds
- Clone the repo.
$ git clone https://github.com/Kaushal-Dhungel/assignment-video-uploader.git
- Navigate to the cloned folder.
$ cd assignment-video-uploader
- Install the dependencies.
$ pip install -r requirements.txt
- Copy environment variables.
$ cp env.txt .env
- Run the program.
$ python3 manage.py runserver
- Run the tests.
$ python3 manage.py test mainapp