Application that allows users to send / receive virtual currency.
add user with default wallet
Code |
Description |
201 |
CREATED |
400 |
Bad Request |
500 |
Internal Server Error |
get user ( for testing purpose )
Name |
Located in |
Description |
Required |
Schema |
userId |
header |
User Id |
Yes |
string (UUID) |
Code |
Description |
200 |
SUCCESS |
400 |
Bad Request |
500 |
Internal Server Error |
Find all transaction for specfic user
For each user retrieve a list of VC transactions where they can see who they’ve sent and received money from.
Name |
Located in |
Description |
Required |
Schema |
userId |
header |
User Id |
Yes |
string (UUID) |
Code |
Description |
200 |
successful operation |
400 |
Invalid user Id |
401 |
Un Authorized |
404 |
transactions not found |
create transaction to send any amount of VC to users.
Name |
Located in |
Description |
Required |
Schema |
userId |
header |
User Id |
Yes |
string (UUID) |
Code |
Description |
200 |
OK |
400 |
Bad Request |
500 |
Internal Server Error |
requirement to set up the service
- java 12
- maven
- postman to import vcApi.yaml as postman collection
to test the application
- MYSQL as DBMS
- Spring boot 2.2.1
update 'src/resources/application.yaml' with your connection prameters
such as database url , username and password
build the application using maven
bash
mvn package
bash
java -jar ./target/virtual-currency-0.0.1-SNAPSHOT.jar
- import openApi/vcApi.yaml to postman as postman collection
- change the baseUrl var on postman with your server url and running port number example
http://localhost:8080
- test all endpoints