Skip to content

walterkivindu/demo1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Overview

This is a RESTful web service application built using spring boot.

Libraries used

The application start by adding some seed data for each entity.

Application endpoints

Client

GET

http://localhost:8080/clients
Gives a list all clients
e.g
All

http://localhost:8080/clients/{id}
Returns the client whose id is as specified
e.g
Client

POST

http://localhost:8080/clients
Adds a new client
e.g
New

Branch

GET

http://localhost:8080/branches
Gives a list all country-branches
e.g
All

http://localhost:8080/branches/{id}
Returns the country-branch whose id is as specified
e.g
Branch

POST

http://localhost:8080/branches
Adds a new country-branch
e.g
New

Device

GET

http://localhost:8080/devices
Gives a list all available devices
e.g
All

http://localhost:8080/devices/{serial}
Returns the device whose serial number is as specified
e.g
Device

POST

http://localhost:8080/devices
Adds a new device
e.g
New

Country

GET

http://localhost:8080/countries
Gives a list all available countries
e.g
All

http://localhost:8080/countries/{code}
Returns the country whose code is as specified
e.g
Country

POST

http://localhost:8080/countries
Adds a new country
e.g
New

Why choose H2?

  • H2 is a relational database as stated in the instructions.
  • H2 is embedded database thus it runs on same JVM where the application is deployed.
  • H2 has a small footprint. It won't significantly increase the size of the application bundle.
  • H2 is witten in Java. Therefore, it integrates well with JVM languages. Also, it is automatically configured by spring boot application.
  • H2 is in-memory which means it maintains the same size after application restart.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages