/drf-aluraflix

API using Django Rest Framework for the Alura Challenge 5th edition

Primary LanguageJavaScript

Django Rest Framework API

Getting started

Run Locally

  • Install all required packages:
pip install -r requirements.txt
  • Run in your localhost server:
python manage.py runserver

Access via URL

JWT Authentication

  • Create your account in /user/register/
  • Do a POST request in /token/ to get your token

Endpoints

Search params

  • /videos/?video_search=
  • /categories/?categories_search=

Pagination

  • /videos/?page=
  • /categories/?page=

Request Example

Video

[
    {
      "title": "VIDEO",
      "description": "SOME VIDEO",
      "url": "https://github.com/DaviGGA"
    }
]

Bad Request

[
    "The video title alrealdy exist"
]

Category

[
    {
      "title": "CATEGORY",
      "color": "#ffffff"
    }
]

Bad Request

[
    "The category title alrealdy exist"
]