I have the list of students with id, firstName, lastName and email, and I have put http method that has two arguments, id and student which finds the student with given id and replace that student whit new one (second parameter).
I have to send that put http request as JSON, but I don't know how to write that request properly. This is what I tried:
{
"id": 8,
"firstName": "aaaa",
"lastName": "aaaa",
"email": "aaaa"
},
{
"id: 2"
}
So the student with id = 2 should be replaced with the student above. Basically I have trouble making this request with two parameters.