POST api/FourCertification/Add
Request Information
URI Parameters
None.
Body Parameters
FourCertMockViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| collection | FourCertMockCollectionViewModel |
None. |
|
| records | Collection of FourCertQuestionRecordViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"collection": {
"BaseType": "sample string 1",
"CollectionName": "sample string 2",
"CoachQuestionCollectionRId": "sample string 3",
"CoachId": "sample string 4",
"Score": 5.0,
"AnswerTime": 6,
"Victory": true
},
"records": [
{
"QuestionRecordId": "sample string 1",
"QuestionId": "sample string 2",
"Result": true,
"RecordOptionA": true,
"RecordOptionB": true,
"RecordOptionC": true,
"RecordOptionD": true,
"RecordOptionE": true,
"RecordOptionY": true,
"ROptionA": true,
"ROptionB": true,
"ROptionC": true,
"ROptionD": true,
"ROptionE": true,
"ROptionY": true,
"QuestionScore": 15.0,
"CoachQuestionCollectionRId": "sample string 16"
},
{
"QuestionRecordId": "sample string 1",
"QuestionId": "sample string 2",
"Result": true,
"RecordOptionA": true,
"RecordOptionB": true,
"RecordOptionC": true,
"RecordOptionD": true,
"RecordOptionE": true,
"RecordOptionY": true,
"ROptionA": true,
"ROptionB": true,
"ROptionC": true,
"ROptionD": true,
"ROptionE": true,
"ROptionY": true,
"QuestionScore": 15.0,
"CoachQuestionCollectionRId": "sample string 16"
}
]
}
application/xml, text/xml
Sample:
<FourCertMockViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CoachKing.WeApp.ViewModel">
<collection>
<AnswerTime>6</AnswerTime>
<BaseType>sample string 1</BaseType>
<CoachId>sample string 4</CoachId>
<CoachQuestionCollectionRId>sample string 3</CoachQuestionCollectionRId>
<CollectionName>sample string 2</CollectionName>
<Score>5</Score>
<Victory>true</Victory>
</collection>
<records>
<FourCertQuestionRecordViewModel>
<CoachQuestionCollectionRId>sample string 16</CoachQuestionCollectionRId>
<QuestionId>sample string 2</QuestionId>
<QuestionRecordId>sample string 1</QuestionRecordId>
<QuestionScore>15</QuestionScore>
<ROptionA>true</ROptionA>
<ROptionB>true</ROptionB>
<ROptionC>true</ROptionC>
<ROptionD>true</ROptionD>
<ROptionE>true</ROptionE>
<ROptionY>true</ROptionY>
<RecordOptionA>true</RecordOptionA>
<RecordOptionB>true</RecordOptionB>
<RecordOptionC>true</RecordOptionC>
<RecordOptionD>true</RecordOptionD>
<RecordOptionE>true</RecordOptionE>
<RecordOptionY>true</RecordOptionY>
<Result>true</Result>
</FourCertQuestionRecordViewModel>
<FourCertQuestionRecordViewModel>
<CoachQuestionCollectionRId>sample string 16</CoachQuestionCollectionRId>
<QuestionId>sample string 2</QuestionId>
<QuestionRecordId>sample string 1</QuestionRecordId>
<QuestionScore>15</QuestionScore>
<ROptionA>true</ROptionA>
<ROptionB>true</ROptionB>
<ROptionC>true</ROptionC>
<ROptionD>true</ROptionD>
<ROptionE>true</ROptionE>
<ROptionY>true</ROptionY>
<RecordOptionA>true</RecordOptionA>
<RecordOptionB>true</RecordOptionB>
<RecordOptionC>true</RecordOptionC>
<RecordOptionD>true</RecordOptionD>
<RecordOptionE>true</RecordOptionE>
<RecordOptionY>true</RecordOptionY>
<Result>true</Result>
</FourCertQuestionRecordViewModel>
</records>
</FourCertMockViewModel>
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. |