POST api/Participant
Request Information
URI Parameters
None.
Body Parameters
ParticipantModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| mobile | string |
None. |
|
| score | integer |
None. |
|
| total_questions | integer |
None. |
|
| passed | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"mobile": "sample string 3",
"score": 4,
"total_questions": 5,
"passed": true
}
application/xml, text/xml
Sample:
<ParticipantModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QuizeApi2.Models"> <id>1</id> <mobile>sample string 3</mobile> <name>sample string 2</name> <passed>true</passed> <score>4</score> <total_questions>5</total_questions> </ParticipantModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.