This is a simple RESTful API for managing movie genres, built with Node.js and Express. This project was created as a task for a programming course.
The API uses Joi for input validation. The name field of the movie genre is required and must be at least 3 characters long.
Clone this repository to your local machine: git clone https://github.com/MROMER444/Moviee-Genres-API Navigate to the project directory: cd movie-genres-api Install the dependencies: npm install Start the application: npm start
You can test the API using any tool that can make HTTP requests, such as Postman or cURL. The base URL for the API is http://localhost:3000/api.
The API has the following endpoints:
Returns a list of all movie genres.
Returns the movie genre with the given ID.
Creates a new movie genre.
Updates the name of the movie genre with the given ID.
Deletes the movie genre with the given ID.
Contributions are welcome! If you find a bug or would like to add a new feature, feel free to submit an issue or pull request.