Skip to content

therealsamlin/movieApi

Repository files navigation

movieApi

Replace s3 credential in config\filesystems.php Replace DB connection string in database.php

All credentials above can be changed to using env(config_variable)

Call to api/access_token to get access token once has been setup in oauth_clients

Youtube link to walk through video - https://www.youtube.com/watch?v=YWpEi4bTmE8


Movie API Walk Through Video


Postman link for request collection - https://www.getpostman.com/collections/daef17e6a2bd259253b4

POST access_token

{
  "access_token": "VEnDz6Kd3YLPnHUfAMqpl0m2QeDW2qz6zozOQZ5f",
  "token_type": "Bearer",
  "expires_in": 3600
}

GET movies/:id

{
  "data": {
    "name": "Esse officia facere nisi eum et vel deserunt dolor dolore magni laboriosam.",
    "rating": "85.00",
    "description": "Voluptatem minus eius enim quidem. Laborum eaque animi quod eum qui et voluptatibus. Sunt sunt molestias architecto molestiae optio. Consequuntur velit quas itaque ex debitis dolores.",
    "image": "http://lorempixel.com/640/480/?61427"
  }
}

POST movies/

{
  "data": 51
}

GET actors/:id

{
  "data": {
    "name": "Dr. Karianne Durgan",
    "birth_date": "1979-11-09",
    "age": 36,
    "bio": "Iste provident qui soluta ut. Ad consequatur harum deserunt debitis. Commodi dolorem consequatur aspernatur et harum molestiae fugit.",
    "image": "http://lorempixel.com/640/480/?32093"
  }
}

POST actors/

{
  "data": 51
}

GET genres/:id

{
  "data": {
    "name": "expedita"
  }
}

POST genres/

{
  "data": 51
}

GET movies/:id/genres

{
  "data": [
    {
      "name": "deserunt"
    },
    {
      "name": "repudiandae"
    }
  ]
}

GET actors/:id/genres

{
  "data": [
    {
      "name": "libero"
    }
  ]
}

GET movies/:id/actors

{
  "data": [
    {
      "id": 15,
      "strCharacter": "Garry Bauch"
    },
    {
      "id": 26,
      "strCharacter": "Nash Rath"
    }
  ]
}

About

Movie API Built in Laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages