带body的POST请求在postman和curl中的使用
1. 在postman中使用带body的POST
2. 在curl中使用带body的POST
curl -H "Content-Type:application/json" -XPOST http://localhost:8080/api/city -d '{ "id":"3", "provinceId":"3", "cityName":"zhuhai", "description":"live in zhuhai"}'
1. 在postman中使用带body的POST
2. 在curl中使用带body的POST
curl -H "Content-Type:application/json" -XPOST http://localhost:8080/api/city -d '{ "id":"3", "provinceId":"3", "cityName":"zhuhai", "description":"live in zhuhai"}'