- Create, Read, Update, and Delete (CRUD) operations for
Person
entities. - RESTful API following best practices.
- Built with Spring Boot, making it scalable and easy to extend.
- Simple structure for rapid development and deployment.
- Java 11: The programming language used for the project.
- Spring Boot 2.7.0: Simplifies the creation of production-grade Spring applications.
- Maven 3.8.5: Build and dependency management tool.
- H2 Database (Optional): In-memory database for development and testing.
- Java 11 or higher.
- Maven installed on your system.
- (Optional) H2 database for in-memory testing.
- Clone the repository:
git clone https://github.com/BaraSedih11/spring-boot-starter.git cd spring-boot-starter
- Install the dependencies:
mvn clean install
To run the Spring Boot application, use the following command:
mvn spring-boot:run
- The application will start on
http://localhost:8080
. *
The API exposes the following endpoints for managing Person entities:
- GET /api/v1/person: Retrieve all persons.
- GET /api/v1/person/{id}: Retrieve a specific person by ID.
- POST /api/v1/person: Create a new person.
- PUT /api/v1/person: Update an existing person.
- DELETE /api/v1/person/{id}: Delete a person by ID.
{
"name": "Bara Al-Sedih"
}