Skip to content

sairaghavak/spring-boot-crud-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API CRUD operations with SpringBoot

This repo demonstrates the usage of HTTP's POST, GET, PUT, DELETE operations while developing REST APIs using Spring Boot.

Here are the APIs

### @author: sairaghavak

### POST /blog/posts

POST http://localhost:2023/blog/posts 
Content-Type: application/json

{
  "title": "srk",
  "content" : "a-z"
}


### Get all posts -- GET /blog/posts
GET http://localhost:2023/blog/posts

@uuid=1af1828f-9c2b-3312-984d-eb0c2d20d876


### Get a specific post - GET /blog/posts/{uuid}
GET http://localhost:2023/blog/posts/{{uuid}}

### Update a post - PUT /blog/posts/{id}
PUT http://localhost:2023/blog/posts/{{uuid}}
Content-Type: application/json

{
  "title": "srk-update",
  "content": "a-z-update"
}


### Delete a post - DELETE /blog/posts/{uuid}
DELETE http://localhost:2023/blog/posts/{{uuid}}

About

A minimalistic CRUD Sample with Spring Boot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages