Skip to content

SaberBing/HSBC-incident

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Incident Management Api

Codacy Badge

RESTful web-service REST API with the voting system on stack: Maven, Spring Boot, Spring Security, REST (Jackson), JDK17, Stream API, H2DB (in memory), JPA (Hibernate), JUnit5, Swagger (API).

Software requirements specification

The task is:

Build an incident system

Installation

  • Make sure you are using JDK 17 and Maven 3.x
  • Clone this repository
$ git clone https://github.com/SaberBing/HSBC-incident.git
  • Run IncidentManagementApplication using the IDE
  • Or you can run without IDE using for example :
$ mvn spring-boot:run
  • You can connect to H2 database in the IDE to see changes with parameters :
jdbc:h2:tcp://localhost:9092/mem:selection

Usage

REST API documentation

The application supports OpenAPI 3.0 Swagger UI.
After starting APP you need to go to url : http://localhost:8080/swagger-ui/index.html#/

Dependency

Database

Use h2 as an in memory database Use JPA as the ORM framework

<dependency>
  <groupId>com.h2database</groupId>
  <artifactId>h2</artifactId>
  <version>1.4.200</version>
</dependency>
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-data-jpa</artifactId>
  <version>2.6.2</version>
</dependency>

Cache

Use caffeine as cache

<dependency>
  <groupId>com.github.ben-manes.caffeine</groupId>
  <artifactId>caffeine</artifactId>
  <version>2.9.3</version>
</dependency>

Swagger

Use openapi to display the api

<dependency>
  <groupId>org.springdoc</groupId>
  <artifactId>springdoc-openapi-ui</artifactId>
  <version>1.6.2</version>
</dependency>

About

it is a springboot server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published