/DemoApp

Restful demo app using Spring Framework

Primary LanguageJavaMIT LicenseMIT

DemoApp

Restful demo app using Spring Framework

Cloning the project

git clone https://github.com/koros/DemoApp.git

Building the app

The demo project uses maevn build tool so after you clone the project and cd to the folder run

mvn clean install

To run all the tests run

mvn test

The project is configured to use an embeded jetty web server plugin so run

mvn jetty:run

Navigate to localhost:8080 on your browser just to make sure the web server is up and running

http://localhost:8080/

To test the transactions api obtain the JWT token by making a POST request to http://localhost:8080/authenticate with the following params

{
    "username" : "user", 
    "password" : "password"
}

accessibility text

List transactions API

Make a GET rquest to http://localhost:8080/api/transactions with an optinal parameter of transaction_id to filter the transactins by their id

accessibility text

By Transaction Id GET http://localhost:8080/api/transactions?transaction_id=e69c0f86-86c8-423b-8fcb-071cbd957997

accessibility text