Skip to content

Blog REST API using Spring Boot, H2 Database and Gradle

Notifications You must be signed in to change notification settings

shldhll/Content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content

Logo

Content

Blog REST API using Spring Boot, H2 Database and Gradle

Features

  • CRUD operations for posts
  • CRUD operations for comments
  • CRUD operations for authors
  • Create/View nested comments
  • Validation and error handling

Installation

  1. Clone the repository git clone https://github.com/shldhll/Content.git
  2. Open project and sync gradle
  3. Build and run the application using gradlew bootRun command

Post

METHOD REQUEST URL DETAILS
POST /post Add a post
GET /post Get all the posts
GET /post/{id} Get a post by ID
PUT /post Update a post
DELETE /post/{id} Delete the post with the given ID

Comment

METHOD REQUEST URL DETAILS
POST /comment Add a comment
GET /comment/post/{id} Get all comments for the given post ID
GET /comment/{id} Get comment by ID
PUT /comment Update a post
DELETE /comment/{id} Delete the comment with the given ID

Author

METHOD REQUEST URL DETAILS
POST /author Add an author
GET /author Get all authors
GET /author/{id} Get author by ID
PUT /author Update an author
DELETE /author/{id} Delete the author with the given ID

About

Blog REST API using Spring Boot, H2 Database and Gradle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages