Complete rest api with H2 database |perfect for interview | post | get | put | patch | delete | demo

Опубликовано: 28 Сентябрь 2024
на канале: okay java
1,413
33

Complete rest api demo | perfect for interview call | post | get | put | patch | delete | demo
Buy me a coffee - https://www.buymeacoffee.com/okayjava

Complete rest api demo with POST, GET, PUT, PATCH & DELETE examples with H2 database.
GET
Fetch All/Single Resource
POST
Create a new Resource
PUT
Update an existing resource or Create a new Resource
PATCH
Partially update an existing resource
DELETE
Del All/Single Resource

GET : Fetch all resources
http://localhost:8080/students
GET : Single Resource
http://localhost:8080/students/{id}
POST : Create a new Resource
http://localhost:8080/students
PUT : Update an existing resource or Create a new if does not exist
http://localhost:8080/students/{id}
PATCH : Partial update
http://localhost:8080/students/{id}
DELETE : Single Resource
http://localhost:8080/students/{id}
DELETE ALL
http://localhost:8080/students

Download the source code - https://gitlab.com/okay-java/student-...
Subscribe for more :)