It's My First Springboot Back-end Project In which I have Implemented Rest API
and also uses postman to test api:)
🌟 Thank you, me, for making it happen! Let's keep coding and building awesome things! 🚀
🚀 Key Achievements:
Developed a RESTful API that showcases my proficiency in Java and Spring Boot.
Successfully handled the integration of MySQL, ensuring data persistence and reliability.
Demonstrated a commitment to best practices, documentation, and a user-friendly API design.
Maven 3+.
MySQL Workbench 8+.
Postman v9+.
Go to the website Spring Initializr to initialize the Spring Boot project. Add the following dependencies:
Spring Boot DevTools: for the development tools.
Lombok: to reduce boilerplate code (for example, getters and setters).
Spring Web: to embed Apache Tomcat and include Spring MVC.
Spring Data JPA: to facilitate the database layer.
MySQL Driver: to enable communication between the Spring Boot application and the database.
| Directory Structure |
|---|
![]() |
spring.datasource.url = jdbc:mysql://localhost:9090/customer-management-system
spring.datasource.username = root
spring.datasource.password = root
spring.jpa.hibernate.ddl-auto = update
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLDialect
server.error.include-stacktrace = never
server.port = 8090
The API will be accessible at http://localhost:8090/customer/save for POST method.
http://localhost:8090/customer/retrieve/[email protected]
:= for GET method. Its uses emailId for retrieve the information from database
Test the application using Postman.
Add a couple of customers.
Enter the body of the request:
{
"first_name": "rahul",
"last_name": "sharma",
"email": "[email protected]",
"phoneNumber": "9515517878"
}
| MySql |
|---|
![]() |
🌐 Tech Stack:
🖥️ Java | Spring Boot | Hibernate
🛢️ MySQL
🚀 RESTful APIs
🔧 Git | Maven
All dependencies are managed using Maven.
| GET {retrieve an customer from database using emailID} |
|---|
![]() |
| Screen2 |
|---|
![]() |
| mysql workbanch |
|---|
![]() |
| POST {Create an customer} |
|---|
![]() |
Make requests to the specified endpoints using your preferred API client.
Ensure proper authorization and authentication mechanisms are in place.
Integrate the API into your applications to manage customer data efficiently.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.





