/sample-restful-api

RESTful API with Spring Boot, JPA, WEB and Hibernate

Primary LanguageJava

RESTful API with Spring Boot, JPA, WEB and Hibernate


Postman

Create User REST API

http://localhost:8080/api/users

HTTP Method: POST

Request Body:

{
    "firstName": "nathan",
    "lastName":"de klerk",
    "email": "nathandeklerk1@gmail.com"
}

Get User REST API

http://localhost:8080/api/users/1

HTTP Method: GET


Update User REST API

http://localhost:8080/api/users/1

HTTP Method: PUT

Request Body:

{
    "firstName": "nathan",
    "lastName":"de klerk",
    "email": "nathandeklerk1@gmail.com"
}

Get All Users REST API

http://localhost:8080/api/users

HTTP Method: GET