Build Restful CRUD API for a nearby shops application using Spring Boot, Mysql, JPA and Hibernate.
1. Clone the application
git clone https://github.com/Morojs/Nearby-Shops-Rest-Api-backend.git
2. Create Mysql database
create database db_nearbyshops
3. Change mysql username and password as per your installation
- open
src/main/resources/application.properties
- change
spring.datasource.username
andspring.datasource.password
as per your mysql installation
4. Run the app using maven
mvn spring-boot:run
The app will start running at http://localhost:8081
The app defines following CRUD APIs.
Method | Url | Decription | Sample Valid Request Body | username | password |
---|---|---|---|---|---|
POST | /authenticate | Authentification | JSON | javainsue | password |