Skip to content

Slyracoon23/Udacity-Full-Stack-Final-Capstone

Repository files navigation

This project is the final project for the Udacity Full Stack Developer Nano Degree

The project is to simulate a casting agency. This includes having actors and movies and assigning actors to movies.

I have added a small frontend that will show the get request for the Actors and Movies and a login page to get the Access token.

This project has two models/tables: A movie table that holds all the movies and an actors table that holds all the actors. For each movie, there are many actors so there is a one to many relationship there.

There are three roles within the API. Casting Assistant, Casting Director and Executive Producer. The logins for the three roles has been provided in the separate notes

The url for the API:

https://ancient-badlands-81110.herokuapp.com/

The PostMan collection has the Access Tokens for the API endpoints.

The endpoints are as follows:

GET '/movies' This endpoint fetches all the movies in the database and displays them as json

GET '/actors' This endpoint fetches all the actors in the databse and displays them as json

POST '/movies/create' This endpoint will create a new movie in the database based on the json that is in the body of the request

POST '/actors/create' This endpoint will create a new actor in the database based on the json that is in the body of the request

DELETE '/movies/delete/int:movie_id' This endpoint will delete the movie that corresponds to the movie ID that is passed into the url

DELETE '/actors/delete/int:actor_id' This endpoint will delete the actor that corresponds to the actor ID that is passed into the url

PATCH '/actors/patch/int:actor_id' This endpoint will modify the actor that corresponds to the actor ID that is passed into the url based on the json that is passed into the body of the request

PATCH '/movies/patch/int:movie_id' This endpoint will modify the movie that corresponds to the movie ID that is passed into the url based on the json that is passed into the body of the request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published