Question: Question 1 Build a REST API for a movie management system using NodeJS. Technical specifications: Tech stack: Backend: NodeJS Database: In - memory Database model
Question
Build a REST API for a movie management system using NodeJS.
Technical specifications:
Tech stack:
Backend: NodeJS
Database: Inmemory
Database model parameters:
movies: id: integer, title: stping, director: string, releaseYear: integer
API Endpoints:
POST 'apimovies : Create a new movie by extracting the title, director, and release year from the request body, and respor
GET apimovies : Fetches the movies with pagination support, retrieving a subset of movies based on specified page and
GET 'apimoviesid; Retrieve a movie by its ID from the database, responding with a JSON object containing the movie's
PATCH 'apimoviesid: Updates the corresponding movie record in the database based on the provided ID Upon successful t
GET 'apimoviessortyearorder : Retrieve movies sorted by release year. It expects a sorting order asc for ascendin
DELETE 'apimovies : Deletes all movies from the database. If the deletion is successful, respond with a Json object conta
DELETE 'apimoviesid : Delete a specific movie from the database based on its ID If the deletion is successful, respon
NB: All the edge cases for each of the API Endpoints must be handled properly & provide the list of such edge cases handled for
each endpoint.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
