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.git2. Create Mysql database
create database db_nearbyshops3. Change mysql username and password as per your installation
- open
src/main/resources/application.properties - change
spring.datasource.usernameandspring.datasource.passwordas per your mysql installation
4. Run the app using maven
mvn spring-boot:runThe 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 |