A Not So Useful Crypto Web Service
From a terminal access the root directory and run the following:
mvn clean install
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/
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 |
To run the unit tests execute the following command fom the root folder:
mvn test