This project is a backend REST API developed using Java Spring Boot and Maven with CORS configuration. It provides endpoints for interacting with a MongoDB database, allowing users to perform CRUD operations on resources. The API follows RESTful principles and is designed to be scalable and efficient. It serves as a foundation for building web applications that require a robust and reliable backend infrastructure.
- Java
- Spring Boot
- Maven
- MongoDB
- Java 8 or higher
- Maven
- MongoDB
-
Clone the repository:
git clone https://github.com/kushalv238/MovieApi.git
-
Navigate to the project directory:
cd MovieApi
-
Build the project using Maven:
mvn clean install
-
Run the application:
java -jar target/MovieApi-0.0.1-SNAPSHOT.jar
-
Access the application:
The application should now be running and accessible at
http://localhost:8080
.
-
GET /api/v1/movies
- Get all the movies information.
-
GET /api/v1/movies/{imdbId}
- Get a particular movie using it's IMDBb id.
-
POST /api/v1/reviews/{imdbId}
- Add a review with rating to a movie using it's IMDb id.
Create an mongoDB project and collection and add the mongoURI to env