The following screenshot shows how to fire a POST request to create a new user:
The following snippet shows the response:
{
"userid": "UserId5",
"name": "User Name 5",
"_links": {
"self": {
"href": "http://localhost:8080/users/5"
},
"user": {
"href": "http://localhost:8080/users/5"
},
"todos": {
"href": "http://localhost:8080/users/5/todos"
}
}
}
The response contains the URI of the created resource—http://localhost:8080/users/5.