Answer the question
In order to leave comments, you need to log in
How to write proper curl for method from Spring MVC Controller?
Good day to all,
@ResponseBody
public UserDto editUser(
@Valid @RequestBody UserDto user,
@RequestParam(value="doSendTempPassword", required = false, defaultValue = "false")
boolean doSendTempPassword)
curl -v -S -u admin:admin123 -X POST -H 'Content-Type: application/json'
-d'{"username":"chuck","firstName":"Chuck","lastName":"Norris",
"mail":"[email protected]","authority":"TENANT_USER"}'
-d'true'
"http://localhost:8080/rest/api/user" | python -mjson.tool
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question