A ott platform API with ASP

Routes

Admin

1. Create an user

  • path: /admin/addmovieorseries
  • request_type: POST
  • require_auth: Bearer
  • req_body:
    {
      "title": "WALL-E",
      "description": "A machine responsible for cleaning a waste-covered Earth meets another robot and falls in love with her. Together, they set out on a journey that will alter the fate of mankind.",
      "genres": [1, 78],
      "publishers": [14],
      "publishedat": "2008-06-27",
      "agelimit": 5,
      "bannerurl": "https://images.pexels.com/photos/2103864/pexels-photo-2103864.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1",
      "moviefiles": ["https://youtu.be/CZ1CATNbXg0"],
      "noofepisodes": 1,
      "isseries": false
  }

2. Create a new Genre

  • path: /admin/addgenre
  • request_type: POST
  • require_auth: Bearer
  • req_body:
 {
     "name": "Romance"
 }

3. Create a new Publisher

  • path:/admin/addpublisher
  • request_type: POST
  • require_auth: Bearer
  • req_body:
 {
     "name": "HBO"
 }

4. View all gernes

  • path: /admin/allgenres
  • request_type: GET
  • require_auth: Bearer

5. View all gernes

  • path: /admin/allpublishers
  • request_type:GET
  • require_auth: Bearer

Authentication - both admin and user level.

1. Create an account

  • path: /auth/signup
  • request_type: POST
  • require_auth: Bearer
  • req_body:
   {
      "email": "user2@gmail.com",
      "password": "password123",
      "fullName": "User Full name",
      "dob": "2002-04-17"
   }

1. Signin

  • path: /auth/signin
  • request_type: POST
  • require_auth: Bearer
  • req_body:
  {
      "email": "admin@yollo.com",
      "password": "admin_password"
  }

Users.