Skip to content

IsaacDev14/Spring-Boot-Crash-Course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software Engineer Management API

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.


Features

  • 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

API Endpoints

Get All Engineers

GET /api/v1/software-engineers

Returns a list of all software engineers.

Get Engineer by ID

GET /api/v1/software-engineers/{id}

Returns details of a specific software engineer.

Add New Engineer

POST /api/v1/software-engineers

Body Example:

{
  "id": 1,
  "name": "John Doe",
  "techStack": "Java, Spring Boot"
}

Update Engineer

PUT /api/v1/software-engineers/{id}

Body Example:

{
  "name": "Jane Smith",
  "techStack": "Python, Django"
}

Delete Engineer

DELETE /api/v1/software-engineers/{id}

Deletes the specified software engineer.


Project Structure

src/main/java/com/example/springboot/
│── SoftwareEngineerController.java
│── SoftwareEngineerService.java
│── SoftwareEngineerRepository.java
│── SoftwareEngineer.java

Setup Instructions

  1. Clone this repository

    git clone <repository-url>
  2. Navigate to the project folder

    cd springboot-software-engineer
  3. Build the project

    mvn clean install
  4. Run the application

    mvn spring-boot:run

The application will start at http://localhost:8080.


Example Usage with cURL

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"}'

Technologies Used

  • Java 17+
  • Spring Boot
  • Maven
  • REST API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages