Skip to content

SpringBoot CRUD (Create, Read, Update, Delete) API for managing student records stored in a MongoDB database.

Notifications You must be signed in to change notification settings

GLRandula/SpringBoot-MongoDB-CRUD-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBoot-MongoDB-CRUD-API

A simple CRUD API built with Spring Boot and MongoDB.

Overview

This project is a Spring Boot application that provides a CRUD (Create, Read, Update, Delete) API for managing student records stored in a MongoDB database.

Features

  • Create a new student record
  • Retrieve all student records
  • Update an existing student record
  • Delete a student record

Setup

  1. Clone the repository:

    git clone https://github.com/GLRandula/SpringBoot-MongoDB-CRUD-API.git
    cd SpringBoot-MongoDB-CRUD-API
  2. Configure MongoDB: Ensure you have MongoDB installed and running on your local machine or configure the connection to your MongoDB instance in the application.properties file.

  3. Build the project:

    mvn clean install
  4. Run the application:

    mvn spring-boot:run

Usage

Once the application is running, you can interact with the API using tools like Postman or cURL.

Endpoints

  • Create a student:

    POST /api/v1/student/save
  • Get all students:

    GET /api/v1/student/getall
  • Update a student:

    PUT /api/v1/student/edit/{id}
  • Delete a student:

    DELETE /api/v1/student/delete/{id}
  • Get a student by ID:

    GET /api/v1/student/search/{id}

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

About

SpringBoot CRUD (Create, Read, Update, Delete) API for managing student records stored in a MongoDB database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages