An open API service indexing awesome lists of open source software.

https://github.com/mlomboglia/my-bank

Build a Restful using Spring Boot, H2, JPA
https://github.com/mlomboglia/my-bank

h2-database java jpa rest-api spring spring-boot

Last synced: over 1 year ago
JSON representation

Build a Restful using Spring Boot, H2, JPA

Awesome Lists containing this project

README

          

# Spring Boot, H2, JPA, Rest API Tutorial

Build Restful CRUD API for a simple bank application using Spring Boot, H2 and JPA.

## Requirements

1. Java - 1.8.x

2. Maven - 3.x.x

## Setup

**1. Clone the application**

```bash
git clone git@github.com:mlomboglia/my-bank.git
```

**2. Build and run the app using maven**

```bash
mvn spring-boot:run
```

The app will start running at .

## Explore Rest APIs

The app defines following CRUD APIs.

GET /accounts/all

GET /accounts/{id}

POST /accounts/new

PUT /accounts/{id}
Param: double amount

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

## Learn more

https://medium.com/@mlombog/lets-create-a-crud-rest-api-with-spring-boot-jpa-and-h2-fc070006e654