Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BOOK API - Spring MVC, MySQL, Hibernate Rest API Tutorial

Build Restful CRUD API for a simple Book-Manage application using Spring MVC, Mysql and Hibernate.

Requirements

  1. Java - 1.8.x

  2. Maven - 3.3.9

  3. MySQL - 5.7.12

Steps to Setup

1. Clone the application

git clone 

2. Create Mysql database

create database bookdb

3. Change mysql username and password as per your installation

  • open src/main/resources/db.properties

  • change mysql.user and mysql.password as per your mysql installation

4. Build and run the app using maven

mvn package

A new WAR file will be generated at project/target/bookapi-0.0.1-SNAPSHOT.war, just copy and deploy to your Tomcat.

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

Explore Rest APIs

The app defines following CRUD APIs.

GET /api/book

POST /api/book

GET /api/book/{bookId}

PUT /api/book/{bookId}

DELETE /api/book/{bookId}

You can test them using postman or any other rest client.

Learn more

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages