Add additional resources and update README

This commit is contained in:
Laurent KAP
2023-05-16 11:52:53 +02:00
parent 9c01cc4263
commit 1facc7bee7
3 changed files with 297 additions and 2 deletions

View File

@@ -0,0 +1,219 @@
{
"info": {
"_postman_id": "325fdf37-6ce8-41aa-bd68-ecf08c1a2ee3",
"name": "Banking Service",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "List accounts",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8080/accounts",
"host": [
"localhost"
],
"port": "8080",
"path": [
"accounts"
]
}
},
"response": []
},
{
"name": "Login User1",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "user1Password",
"type": "string"
},
{
"key": "username",
"value": "user1",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"url": {
"raw": "localhost:8080/login",
"host": [
"localhost"
],
"port": "8080",
"path": [
"login"
]
}
},
"response": []
},
{
"name": "Login User2",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "username",
"value": "user2",
"type": "string"
},
{
"key": "password",
"value": "user2Password",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"url": {
"raw": "localhost:8080/login",
"host": [
"localhost"
],
"port": "8080",
"path": [
"login"
]
}
},
"response": []
},
{
"name": "Logout",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "localhost:8080/logout",
"host": [
"localhost"
],
"port": "8080",
"path": [
"logout"
]
}
},
"response": []
},
{
"name": "Create Payment",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"amount\": 1,\n \"currency\": \"EUR\",\n \"giverAccount\": 2,\n \"beneficiaryName\": \"testName\",\n \"beneficiaryAccountNumber\": \"LU560303O43349845521\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8080/payment",
"host": [
"localhost"
],
"port": "8080",
"path": [
"payment"
]
}
},
"response": []
},
{
"name": "Update User",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"password\": \"user1UpdatedPassword\",\n \"street\": \"updatedStreet\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8080/update-user",
"host": [
"localhost"
],
"port": "8080",
"path": [
"update-user"
]
}
},
"response": []
},
{
"name": "Delete Payment",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "localhost:8080/payment/1",
"host": [
"localhost"
],
"port": "8080",
"path": [
"payment",
"1"
]
}
},
"response": []
},
{
"name": "List All Payments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8080/payments",
"host": [
"localhost"
],
"port": "8080",
"path": [
"payments"
],
"query": [
{
"key": "beneficiaryAccountNumber",
"value": "LU560303O43349845521",
"disabled": true
},
{
"key": "startDate",
"value": "2023-05-15T17:39:10",
"disabled": true
},
{
"key": "endDate",
"value": "2023-05-15T17:39",
"disabled": true
}
]
}
},
"response": []
}
]
}