POST api/ExamResult/AddExamResult

Request Information

URI Parameters

None.

Body Parameters

ExamResult
NameDescriptionTypeAdditional information
correct

integer

None.

UserId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "correct": 1,
  "UserId": 2
}

application/octet-stream

Sample:
{"$id":"1","correct":1,"UserId":2}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ExamResult'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/octet-stream

Sample:

Sample not available.