1
0
mirror of https://github.com/actix/examples synced 2024-12-02 18:02:22 +01:00
examples/databases/mysql/apis/addteller.txt

19 lines
418 B
Plaintext
Raw Normal View History

1.
Linux
curl -d '{"teller_name":"John Doe", "branch_name":"Central Business District"}' -H 'Content-Type: application/json' http://127.0.0.1:8080/addteller
2.
Windows
curl -H "Content-type:application/json" --data-binary "{\"teller_name\":\"John Doe\", \"branch_name\":\"Central Business District\"}" http://127.0.0.1:8080/addteller
3.
2023-07-17 18:55:17 +02:00
JSON response
{
"status_code": 0,
"status_description": "Successful"
2023-07-17 18:55:17 +02:00
}