Skip to content

Abrishges/transaction-api-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transaction API

contact: [email protected]

  • This project is based on maven with spring boot version 1.46

Prerequisite

  • Maven
    • Check if you have maven installed: mvn --version
  • IDE
    • Either IntelliJ or Eclipse

*clone or download

#To run the project, Navigate to project directory, transaction-api-service using terminal or cmd, and use the following cmd

mvn spring-boot:run

To test calls , use swagger page in your favourite browser

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "args": { "api-token": "AppTokenForInterview", "json-strict-mode": true, "json-verbose-response": true, "token": "5A927B8D34DAC597D0A1489C304E9BC9", "uid": 1110590645 } }' 'http://localhost:8080/capitalOne/transactions'

  • money the user spends and makes in each of the months

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "args": { "api-token": "AppTokenForInterview", "json-strict-mode": true, "json-verbose-response": true, "token": "5A927B8D34DAC597D0A1489C304E9BC9", "uid": 1110590645 } }' 'http://localhost:8080/capitalOne/transactions/monthlyexpense'

  • getProjectedTransactionsForMonth

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "args": { "api-token": "AppTokenForInterview", "json-strict-mode": true, "json-verbose-response": true, "token": "5A927B8D34DAC597D0A1489C304E9BC9", "uid": 1110590645 }, "month": 4, "year": 2017 }' 'http://localhost:8080/capitalOne/transactions/month/endpoint'

About

Transaction api service using spring boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published