gbrunow / notsouseful

A Not So Useful Crypto Web Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NotSoUseful

A Not So Useful Crypto Web Service

Compiling the Code

From a terminal access the root directory and run the following:

mvn clean install

Running the Application

To run this project execute the following command from the root folder:

java -jar target/notsouseful-1.0-SNAPSHOT.jar server config.yml

You may now access the API at http://localhost:8080/

Endpoints

This Not So Useful Crypto Web Service has the following endpoints:

Name Method URL Input Output
PushAndRecalculate POST nsu/push-and-recalculate A Single Number JSON Object Containing the running average and standard deviation
PushRecalculateAndEncrypt POST nsu/push-recalculate-and-encrypt A Single Number JSON Object Containing the encrypted running average and standard deviation
Decrypt POST nsu/decrypt An encryted number provided by PushRecalculateAndEncrypt Plain text containing the decrypted number
Bonus: GetStats GET nsu/stats None JSON Object Containing the current running average and standard deviation

Running Unit Tests

To run the unit tests execute the following command fom the root folder:

mvn test

Riddle me this

Jokes Card

About

A Not So Useful Crypto Web Service


Languages

Language:Java 100.0%