POST api/CodingTest/SubmitTest
Request Information
URI Parameters
None.
Body Parameters
TestSubmitResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| TST_Id | integer |
None. |
|
| token | string |
None. |
|
| questions | Collection of Questions |
None. |
Request Formats
application/json, text/json
Sample:
{
"TST_Id": 1,
"token": "sample string 2",
"questions": [
{
"TSQ_Id": 1,
"Attempted": true,
"Correct": true,
"CodingLanguage": "sample string 4",
"TimeTick": 5,
"InputCode": "sample string 6",
"testcases": [
{
"CQT_Id": 1,
"Correct": true,
"Output": "sample string 3"
},
{
"CQT_Id": 1,
"Correct": true,
"Output": "sample string 3"
}
]
},
{
"TSQ_Id": 1,
"Attempted": true,
"Correct": true,
"CodingLanguage": "sample string 4",
"TimeTick": 5,
"InputCode": "sample string 6",
"testcases": [
{
"CQT_Id": 1,
"Correct": true,
"Output": "sample string 3"
},
{
"CQT_Id": 1,
"Correct": true,
"Output": "sample string 3"
}
]
}
]
}
application/xml, text/xml
Sample:
<TestSubmitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/C4U.CODINGPLATFORM.API.Models">
<TST_Id>1</TST_Id>
<questions>
<Questions>
<Attempted>true</Attempted>
<CodingLanguage>sample string 4</CodingLanguage>
<Correct>true</Correct>
<InputCode>sample string 6</InputCode>
<TSQ_Id>1</TSQ_Id>
<TimeTick>5</TimeTick>
<testcases>
<TestCases>
<CQT_Id>1</CQT_Id>
<Correct>true</Correct>
<Output>sample string 3</Output>
</TestCases>
<TestCases>
<CQT_Id>1</CQT_Id>
<Correct>true</Correct>
<Output>sample string 3</Output>
</TestCases>
</testcases>
</Questions>
<Questions>
<Attempted>true</Attempted>
<CodingLanguage>sample string 4</CodingLanguage>
<Correct>true</Correct>
<InputCode>sample string 6</InputCode>
<TSQ_Id>1</TSQ_Id>
<TimeTick>5</TimeTick>
<testcases>
<TestCases>
<CQT_Id>1</CQT_Id>
<Correct>true</Correct>
<Output>sample string 3</Output>
</TestCases>
<TestCases>
<CQT_Id>1</CQT_Id>
<Correct>true</Correct>
<Output>sample string 3</Output>
</TestCases>
</testcases>
</Questions>
</questions>
<token>sample string 2</token>
</TestSubmitResponse>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |