Project Name: CampusAdmin
Backend Framework: Spring Boot
CampusAdmin is a web application designed to manage student information efficiently. The application allows users to add, update, find, and delete student records through a user-friendly interface. The backend is built using Spring Boot, providing a robust and scalable solution for handling API requests.
- Add Student: Users can add new student records with relevant details.
- Update Student: Existing student records can be updated with new information.
- Find Student: Users can search for a student by their ID to view details.
- Delete Student: Users can remove a student record from the system.
- View All Students: A table displaying all students with pagination support for better performance and usability.
- Frontend: HTML, CSS (Bootstrap)
- Backend: Spring Boot
- Database: MySQL
- API Communication: RESTful APIs
- API Documentation: Swagger UI
-
Clone the Repository
git clone https://github.com/lakshay1341/CampusAdmin.git cd CampusAdmin -
Set Up the Database
- Create a database in your preferred database management system.
- Update the
application.propertiesfile in thesrc/main/resourcesdirectory with your database connection details.
-
Run the Application
- Navigate to the project directory and run:
./mvnw spring-boot:run
- The application will start on
http://localhost:8080.
-
Access the Swagger UI
- Open your web browser and go to:
http://localhost:8080/swagger-ui.html - Use this interface to explore and test the APIs.
- Open your web browser and go to:
The API documentation for CampusAdmin is auto-generated and accessible through Swagger UI. It provides an interactive interface to test and understand all available endpoints.
- Navigate to
http://localhost:8080/swagger-ui.html. - Expand each API endpoint group to view detailed documentation.
- Use the "Try it out" button to test API endpoints directly from the browser.
- Review responses for each endpoint, including HTTP status codes and data structures.
- POST /api/student/create: Add a new student.
- PUT /api/student/modify: Update student details.
- GET /api/student/find/{id}: Find a student by ID.
- DELETE /api/student/remove/{id}: Delete a student by ID.
- GET /api/student/all: View all students with pagination.
The CampusAdmin project provides a comprehensive solution for managing student records efficiently using modern web technologies. With the integration of Swagger UI, API testing and documentation have become seamless, enhancing the overall development and user experience.