Skip to content
Spring Boot REST API Starter Template
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
rest
.gitignore
LICENSE
README.md

README.md

Spring Boot REST API Starter Template

Sample Response:

GET http://localhost:8080/api/v1/employees

{
    "code": 200,
    "message": "success",
    "result": [
        {
            "id": 1,
            "name": "Ipan Ardian",
            "position": "VP Engineer"
        },
        {
            "id": 2,
            "name": "Tony Stark",
            "position": "Java Developer"
        }
    ]
}

POST http://localhost:8080/api/v1/employees

{
    "code": 200,
    "message": "success",
    "result": {
        "id": 5,
        "name": "Ipan Ardian",
        "position": "VP Engineer"
    }
}

PUT http://localhost:8080/api/v1/employees/{id}

{
    "code": 200,
    "message": "success",
    "result": {
        "id": 5,
        "name": "Ipan Ardian",
        "position": "VP Engineer"
    }
}

DELETE http://localhost:8080/api/v1/employees/{id}

{
    "code": 200,
    "message": "Employee deleted successfully",
    "result": {
        "id": 5,
        "name": "Ipan Ardian",
        "position": "VP Engineer"
    }
}
You can’t perform that action at this time.