2023-07-17 18:31:58 +02:00
|
|
|
1.
|
|
|
|
Linux
|
|
|
|
|
2023-07-17 19:56:41 +02:00
|
|
|
curl -d '{"teller_name":"John Doe", "branch_name":"Central Business District"}' -H 'Content-Type: application/json' http://127.0.0.1:8080/teller
|
2023-07-17 18:31:58 +02:00
|
|
|
|
|
|
|
2.
|
|
|
|
Windows
|
|
|
|
|
2023-07-17 19:56:41 +02:00
|
|
|
curl -H "Content-type:application/json" --data-binary "{\"teller_name\":\"John Doe\", \"branch_name\":\"Central Business District\"}" http://127.0.0.1:8080/teller
|
2023-07-17 18:31:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
3.
|
2023-07-17 18:55:17 +02:00
|
|
|
JSON response
|
2023-07-17 18:31:58 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
"status_code": 0,
|
|
|
|
"status_description": "Successful"
|
2023-07-17 18:55:17 +02:00
|
|
|
}
|
2023-07-17 19:56:41 +02:00
|
|
|
|
|
|
|
4.
|
|
|
|
Linux
|
|
|
|
|
|
|
|
curl 'http://localhost:8080/teller'
|
|
|
|
|
|
|
|
5.
|
|
|
|
Windows
|
|
|
|
|
|
|
|
curl http://localhost:8080/teller
|
|
|
|
|
|
|
|
6.
|
|
|
|
JSON response
|
|
|
|
|
|
|
|
{
|
|
|
|
"status_code": 0,
|
|
|
|
"status_description": "Successful",
|
|
|
|
"teller_data": [
|
|
|
|
{
|
|
|
|
"teller_name": "john doe",
|
|
|
|
"branch_name": "central business district"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|