POST api/Exam
Request Information
URI Parameters
None.
Body Parameters
Collection of ExamAnswers| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| SetId | integer |
None. |
|
| StudentId | integer |
None. |
|
| QuesId | integer |
None. |
|
| AnswerId | integer |
None. |
|
| Marks | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"SetId": 2,
"StudentId": 3,
"QuesId": 4,
"AnswerId": 5,
"Marks": 6.1
},
{
"Id": 1,
"SetId": 2,
"StudentId": 3,
"QuesId": 4,
"AnswerId": 5,
"Marks": 6.1
}
]
application/xml, text/xml
Sample:
<ArrayOfExamAnswers xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnFirstWebApi.Models">
<ExamAnswers>
<AnswerId>5</AnswerId>
<Id>1</Id>
<Marks>6.1</Marks>
<QuesId>4</QuesId>
<SetId>2</SetId>
<StudentId>3</StudentId>
</ExamAnswers>
<ExamAnswers>
<AnswerId>5</AnswerId>
<Id>1</Id>
<Marks>6.1</Marks>
<QuesId>4</QuesId>
<SetId>2</SetId>
<StudentId>3</StudentId>
</ExamAnswers>
</ArrayOfExamAnswers>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| std | string |
None. |
|
| name | string |
None. |
|
| stid | integer |
None. |
|
| Status | integer |
None. |
|
| Content | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"std": "sample string 2",
"name": "sample string 3",
"stid": 4,
"Status": 5,
"Content": {}
}
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnFirstWebApi.Models"> <Content /> <Message>sample string 1</Message> <Status>5</Status> <name>sample string 3</name> <std>sample string 2</std> <stid>4</stid> </Response>