Build Restful CRUD API for a blog using Spring Boot, Mysql, JPA and Hibernate.
1. Clone the application
git clone https://github.com/SurajSinghChauhan/Book-Api.git2. Create Mysql database
create database test_api- run
at port 3307
-run command use test_api
4. Run the app using maven
mvn spring-boot:runThe app will start running at http://localhost:8080
The app defines following CRUD APIs.
| Method | Url | Decription | Sample Valid Request Body |
|---|---|---|---|
| POST | http://localhost:8080/books | Add Books | JSON |
| Method | Url | Description | Sample Valid Request Body |
|---|---|---|---|
| GET | http://localhost:8080/books | Get all books |
Similar other update and delete commands