Skip to content

Magus4450/RPA-VideoAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run

  1. Make a virtual environment
    python3 -m venv env

  2. Activate virtual envrionment
    source /env/Scripts/activate for Win
    bin /env/lib/activate for Mac / Linux

  3. Install requirements
    pip install -r requirements.txt

  4. Migrate
    python3 manage.py migrate

  5. Run
    python3 manage.py runserver


API Endpoints

1. /api/video/create/

Upload a new video

  • Allowed Requests: POST
  • Payloads
    • video : file
  • Constraints:
    • File type should be either .mp4 or .mkv
    • File size should be less then 1GB
    • Video length should be less than 10 minutes

2. /api/video/uploading/

Get list of videos being currently uploaded

  • Allowed Requests: GET

3. /api/video/charges<int:size_bytes>/<int:length_seconds>/<str:video_type>/

Get charge of video of given parametes

  • Allowed Requests: GET
  • Constraints:
    • File type should be either .mp4 or .mkv
    • File size should be less then 1GB
    • Video length should be less than 10 minutes

    4. /api/video/size/<int:minm>/<int:maxm>/

    Get list of videos of size in given range

    • Allowed Requests: GET

    5. /api/video/date/<str:date>/

    Get list of videos published after given date

    • Allowed Requests: GET

    6. /api/video/length/<int:minm>/<int:maxm>/

    Get list of videos of length in given range

    • Allowed Requests: GET

    7. /api/video/all/

    Get list of all videos

    • Allowed Requests: GET

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages