-
Notifications
You must be signed in to change notification settings - Fork 2
Open Api 2.1
José Antonio Córdoba Gómez edited this page Jan 8, 2021
·
1 revision
{
"info": {
"_postman_id": "0b083554-a5fb-446d-9880-d97d285ba041",
"name": "cloudbanking",
"description": "Api Cloudbanking\n",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "/api",
"item": [
{
"name": "/users",
"item": [
{
"name": "List of Users /users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{HOST}}:{{PORT}}/api/users",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"users"
]
}
},
"response": []
},
{
"name": "Add One User /users",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"id\": \"507f1f77bcf86cd799439011\",\n \"email\": \"j.cordoba@ostfalia.de\",\n \"created_at\": \"2020-07-08T22:18:00\",\n \"bank_accounts\": {},\n \"bank_cards\": {},\n \"bank_funds\": {} \n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}:{{PORT}}/api/users",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"users"
]
}
},
"response": []
},
{
"name": "User by Id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{HOST}}:{{PORT}}/api/users/507f1f77bcf86cd799439011",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"users",
"507f1f77bcf86cd799439011"
]
}
},
"response": []
},
{
"name": "Remove by Id",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{HOST}}:{{PORT}}/api/users/507f1f77bcf86cd799439011",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"users",
"507f1f77bcf86cd799439011"
]
}
},
"response": []
},
{
"name": "Update User",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"id\": \"507f1f77bcf86cd799439011\",\n \"email\": \"JOSE@ostfalia.de\",\n \"created_at\": \"2020-07-08T22:18:00\",\n \"bank_accounts\": {},\n \"bank_cards\": {},\n \"bank_funds\": {} \n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}:{{PORT}}/api/users/507f1f77bcf86cd799439011",
"host": [
"{{HOST}}"
],
"port": "{{PORT}}",
"path": [
"api",
"users",
"507f1f77bcf86cd799439011"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
},
{
"name": "/account",
"item": [
{
"name": "Save a Bank Account",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"id\": \"999f7f66abf88ee70243988\",\n \"swift\": \"BSCHESMMXXX\",\n \"iban\": \"ES32668805111122223334\",\n \"created_at\": \"2020-07-08T22:18:00\",\n \"status\": true\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://{{HOST}}:3031/accounts/",
"protocol": "http",
"host": [
"{{HOST}}"
],
"port": "3031",
"path": [
"accounts",
""
]
}
},
"response": []
},
{
"name": "Recover a Bank Account",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://{{HOST}}:3031/accounts/999f7f66abf88ee70243988",
"protocol": "http",
"host": [
"{{HOST}}"
],
"port": "3031",
"path": [
"accounts",
"999f7f66abf88ee70243988"
]
},
"description": "Get a Bank Account"
},
"response": []
},
{
"name": "Delete a Bank Account",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://{{HOST}}:3031/accounts/999f7f66abf88ee70243988",
"protocol": "http",
"host": [
"{{HOST}}"
],
"port": "3031",
"path": [
"accounts",
"999f7f66abf88ee70243988"
]
}
},
"response": []
}
],
"description": "Bank Account Microservice",
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
},
{
"name": "/cards",
"item": [
{
"name": "Recover ",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://0.0.0.0:3032/cards/507f1f77bcf86cd799439011507f1f77bcf86cd799439011",
"protocol": "http",
"host": [
"0",
"0",
"0",
"0"
],
"port": "3032",
"path": [
"cards",
"507f1f77bcf86cd799439011507f1f77bcf86cd799439011"
]
}
},
"response": []
},
{
"name": "Save a Card",
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"id\": \"507f1f77bcf86cd799439011507f1f77bcf86cd799439011\",\n \"number\" : \"5555111122223333\",\n \"cvc\" : \"584\",\n \"date_limit\": \"6 de enero de 2021\",\n \"status\": true\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://0.0.0.0:3032/cards",
"protocol": "http",
"host": [
"0",
"0",
"0",
"0"
],
"port": "3032",
"path": [
"cards"
]
}
},
"response": []
},
{
"name": "Remove Card",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://0.0.0.0:3032/cards/507f1f77bcf86cd799439011507f1f77bcf86cd799439011",
"protocol": "http",
"host": [
"0",
"0",
"0",
"0"
],
"port": "3032",
"path": [
"cards",
"507f1f77bcf86cd799439011507f1f77bcf86cd799439011"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
},
{
"name": "/funds",
"item": [
{
"name": "Get Funds",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3033/funds",
"protocol": "http",
"host": [
"localhost"
],
"port": "3033",
"path": [
"funds"
]
}
},
"response": []
},
{
"name": "Save Fund",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"id\" : 10,\n \"amount\": 544.4,\n \"dateStart\": \"toady\",\n \"dateEnd\": \"tomorrow\",\n \"status\": true\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3033/funds",
"protocol": "http",
"host": [
"localhost"
],
"port": "3033",
"path": [
"funds"
]
}
},
"response": []
},
{
"name": "Remove Fund",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3033/funds/10",
"protocol": "http",
"host": [
"localhost"
],
"port": "3033",
"path": [
"funds",
"10"
]
}
},
"response": []
}
]
}
]
},
{
"name": "checkhealth in /",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://0.0.0.0:3030/healthcheck",
"protocol": "http",
"host": [
"0",
"0",
"0",
"0"
],
"port": "3030",
"path": [
"healthcheck"
]
},
"description": "Check Status"
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
}