POST api/AlertisApi/FinishTest?carrierId={carrierId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| carrierId | integer |
Required |
Body Parameters
TestAnswersViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TestId | integer |
None. |
|
| Language | string |
None. |
|
| CarrierType | CarrierType |
None. |
|
| Answers | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"TestId": 1,
"Language": "sample string 2",
"CarrierType": "Visitor",
"Answers": [
1,
2
]
}
application/xml, text/xml
Sample:
<TestAnswersViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alertis.Model.ViewModels">
<Answers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Answers>
<CarrierType>Visitor</CarrierType>
<Language>sample string 2</Language>
<TestId>1</TestId>
</TestAnswersViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TestResultViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TotalQuestionCount | integer |
None. |
|
| GoodAnswerCount | integer |
None. |
|
| ValidityDuration | integer |
None. |
|
| NewExpiryDate | string |
None. |
|
| TestPassed | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"TotalQuestionCount": 1,
"GoodAnswerCount": 2,
"ValidityDuration": 1,
"NewExpiryDate": "sample string 3",
"TestPassed": true
}
application/xml, text/xml
Sample:
<TestResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alertis.Model.ViewModels"> <GoodAnswerCount>2</GoodAnswerCount> <NewExpiryDate>sample string 3</NewExpiryDate> <TestPassed>true</TestPassed> <TotalQuestionCount>1</TotalQuestionCount> <ValidityDuration>1</ValidityDuration> </TestResultViewModel>