1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00
examples/databases/mysql/apis/addbank.txt
2023-07-17 17:55:17 +01:00

18 lines
359 B
Plaintext

1.
Linux
curl -d '{"bank_name":"Bank ABC","country":"Kenya"}' -H 'Content-Type: application/json' http://127.0.0.1:8080/addbank
2.
Windows
curl -H "Content-type:application/json" --data-binary "{\"bank_name\":\"Bank ABC\",\"country\":\"Kenya\"}" http://127.0.0.1:8080/addbank
3.
JSON response
{
"status_code": 0,
"status_description": "Successful"
}