Created
August 2, 2018 16:37
-
-
Save selmantayyar/b6c8b068fe6919478dd251f986f9be49 to your computer and use it in GitHub Desktop.
Postman tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": [], | |
"info": { | |
"name": "Transfer API", | |
"_postman_id": "ffb3fe0d-e92f-2b0a-0cf6-48cbebb3dd57", | |
"description": "", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Create Account", | |
"request": { | |
"url": "http://localhost:8080/ingenico/accounts", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"name\": \"Fatih\",\n\t\"balance\": 720.00\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get Account By ID", | |
"request": { | |
"url": "http://localhost:8080/ingenico/accounts/1", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Transfer Money", | |
"request": { | |
"url": "http://localhost:8080/ingenico/transfer", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"accountFromId\": 1,\n\t\"accountToId\": 2,\n\t\"amount\": 100\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment