Using CURL:
curl -X "POST" "http://127.0.0.1:8080/v1/customers" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d $'{
"name": "Customer1",
"age": 21,
"gender": 2
}'
curl -X "PUT" "http://127.0.0.1:8080/v1/customers/1" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d $'{
"id": 1,
"name": "Customer1",
"age": "21",
"gender": "2"
}'