Skip to content

mohasaid/vertx-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vertx REST API Build Status codecov

Restful API to calculate real time statistics from the last 60 seconds of the processed transactions. The API has 3 end points:

POST /transactions - Registers a new transaction each time it happens with the timestamp and the amount.

GET /statistics - Returns the statistics (such as average, sum, maximum, minimum, count) based on the amount of the transactions from the last 60 seconds.

DELETE /transactions - Deletes all transactions from the last 60 seconds.

Prerequisites

  • JDK 1.8+
  • Maven 3.0+

Usage

To run the project:

$ mvn clean spring-boot:run

Techonologies

The project is built using spring-boot, allowing the project to be self-contained and deployed isolated from any other web container (like Jboss, Tomcat, etc.). The REST API implementation is done using vert.x Web, a framework that lets you create web applications easily using Vert.x, which allows you to build apps that can handle a lot of concurrency using a small number of kernel threads. It also uses lombok, a java library which helps to reduce boilerplate code.

About

Simple REST API built using spring boot and vert.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages