Skip to content

📚 Full Stack Development with Angular and Spring MVC. Book API demonstrates the RESTful web services using Spring MVC. Book API performs all the CRUD operations. User can create a book, read a single book, update a book and delete a book. To communicate with database we will use Hibernate which is our ORM framework and MySQL is the database to s…

Notifications You must be signed in to change notification settings

RocktimRajkumar/Book-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Java - 1.8.x

Maven - 3.6.0

MySQL - 8.0.2

Steps to Setup

1. Clone the application

git clone https://github.com/RocktimRajkumar/Book-API.git

2. Create Mysql database

create database bookapi

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.war, just copy and deploy to your Tomcat.

The app will start running at http://localhost:8080/BookAPI/api/book/.

Explore Rest APIs

The app defines following CRUD APIs.

HTTP Method CRUD Operation Description
POST Create Create a new Book
https://localhost:8080/BookAPI/api/book
GET Read Retrieve a Single Book/All Books
https://localhost:8080/BookAPI/api/book
https://localhost:8080/BookAPI/api/book/{id}
PUT Update Update or modify a Book
https://localhost:8080/BookAPI/api/book/{id}
DELETE Delete Delete a Book :- https://localhost:8080/BookAPI/api/book/{id}

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

About

📚 Full Stack Development with Angular and Spring MVC. Book API demonstrates the RESTful web services using Spring MVC. Book API performs all the CRUD operations. User can create a book, read a single book, update a book and delete a book. To communicate with database we will use Hibernate which is our ORM framework and MySQL is the database to s…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages