The Movie API Call creates a server Request and imports the HTTP module and returns the URL Module Index File. If user adds documentation to localHost:3000/documentation the user will be handed the documentation file.
UPDATE: 12/14/21
The Movie API Utilizes express in Node.js to get the documentation file for the Project directory. Further express.static was utilized to carry out the request. To get the documentation file from the project directory folder. Also A "/Movies" get request was added to the lifecycle.
- Movie API will:
- Provide Access to a Database of Movies
- Search and find Details about movies (such as Titles directors, genres.)
- Users can create thier own account add personal information.
- Create a list of their favorite movies.
- Users Can Delete Movies Also from their list.
- Users Can Update Their personal Information
- Users Can De-Register their Account
MOVIE REST API ENDPOINTS:
Request: | Endpoint: | Method: | Format | Description | |
---|---|---|---|---|---|
All Movies | /Movies |
GET |
JSON Format | Gets All Movies | |
One Movie | /Movies |
GET |
JSON Format | Returns a Single Movie | |
Find Genre | /Movies/Genres |
GET |
JSON Format | Returns All Movie Genres | |
Add Favorite Movie | /movies/favMovies/:Title |
POST |
JSON Format | Adds Favorite Movie to their list | |
Delete Favorite Movie | /movies/remove/:Title |
DELETE |
JSON Format | Removes Favorite Movie from Users list | |
Add User | /users/NewUser/:UserName |
POST |
JSON Format | Creates New User | |
Update User | /users/UpdateUser/:Username |
PUT |
JSON Format | Updates User Information | |
Delete User | /users/remove/:UserName |
DELETE |
JSON Format | Removes User from Users list |
MJG 2021