Skip to content

SurajSinghChauhan/Book-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot, MySQL, JPA, Rest API

Build Restful CRUD API for a blog using Spring Boot, Mysql, JPA and Hibernate.

Steps to Setup

1. Clone the application

git clone https://github.com/SurajSinghChauhan/Book-Api.git

2. 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:run

The app will start running at http://localhost:8080

Explore Rest APIs

The app defines following CRUD APIs.

Insert

Method Url Decription Sample Valid Request Body
POST http://localhost:8080/books Add Books JSON

Books

Method Url Description Sample Valid Request Body
GET http://localhost:8080/books Get all books

Similar other update and delete commands

About

Book Api using Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages