This is a Spring Boot REST API for managing software engineers. It supports CRUD operations (Create, Read, Update, Delete) and is built using Java and Spring Boot.
- Retrieve all software engineers
- Retrieve a single software engineer by ID
- Add a new software engineer
- Update an existing software engineer
- Delete a software engineer
GET /api/v1/software-engineers
Returns a list of all software engineers.
GET /api/v1/software-engineers/{id}
Returns details of a specific software engineer.
POST /api/v1/software-engineers
Body Example:
{
"id": 1,
"name": "John Doe",
"techStack": "Java, Spring Boot"
}
PUT /api/v1/software-engineers/{id}
Body Example:
{
"name": "Jane Smith",
"techStack": "Python, Django"
}
DELETE /api/v1/software-engineers/{id}
Deletes the specified software engineer.
src/main/java/com/example/springboot/
│── SoftwareEngineerController.java
│── SoftwareEngineerService.java
│── SoftwareEngineerRepository.java
│── SoftwareEngineer.java
-
Clone this repository
git clone <repository-url>
-
Navigate to the project folder
cd springboot-software-engineer
-
Build the project
mvn clean install
-
Run the application
mvn spring-boot:run
The application will start at http://localhost:8080
.
curl -X GET http://localhost:8080/api/v1/software-engineers
curl -X POST http://localhost:8080/api/v1/software-engineers \
-H "Content-Type: application/json" \
-d '{"name":"Alice Johnson", "techStack":"React, Node.js"}'
- Java 17+
- Spring Boot
- Maven
- REST API