mirror of
https://github.com/actix/examples
synced 2024-12-18 00:13:57 +01:00
19 lines
430 B
Plaintext
19 lines
430 B
Plaintext
1.
|
|
Linux
|
|
|
|
curl -d '{"customer_name":"Peter Paul", "branch_name":"Central Business District"}' -H 'Content-Type: application/json' http://127.0.0.1:8080/addcustomer
|
|
|
|
2.
|
|
Windows
|
|
|
|
curl -H "Content-type:application/json" --data-binary "{\"customer_name\":\"Peter Paul\", \"branch_name\":\"Central Business District\"}" http://127.0.0.1:8080/addcustomer
|
|
|
|
|
|
3.
|
|
JSON response
|
|
|
|
{
|
|
"status_code": 0,
|
|
"status_description": "Successful"
|
|
}
|