POST api/Questions
Request Information
URI Parameters
None.
Body Parameters
Questions| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Question | string |
String length: inclusive between 0 and 600 |
|
| ans1 | string |
String length: inclusive between 0 and 255 |
|
| ans2 | string |
String length: inclusive between 0 and 255 |
|
| ans3 | string |
String length: inclusive between 0 and 255 |
|
| ans4 | string |
String length: inclusive between 0 and 255 |
|
| corans | string |
String length: inclusive between 0 and 5 |
|
| difficulty | integer |
None. |
|
| chapter | integer |
None. |
|
| tstamp | date |
None. |
|
| correct | integer |
None. |
|
| wrong | integer |
None. |
|
| orderby | integer |
None. |
|
| orderby2 | integer |
None. |
|
| photo | Collection of byte |
None. |
|
| lessonid | integer |
None. |
|
| orderby3 | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Question": "sample string 2",
"ans1": "sample string 3",
"ans2": "sample string 4",
"ans3": "sample string 5",
"ans4": "sample string 6",
"corans": "sample string 7",
"difficulty": 1,
"chapter": 1,
"tstamp": "2025-11-20T21:53:40.1736986+02:00",
"correct": 1,
"wrong": 1,
"orderby": 1,
"orderby2": 1,
"photo": "QEA=",
"lessonid": 1,
"orderby3": 1
}
application/xml, text/xml
Sample:
<Questions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/exantasgameapi.Models"> <Id>1</Id> <Question>sample string 2</Question> <ans1>sample string 3</ans1> <ans2>sample string 4</ans2> <ans3>sample string 5</ans3> <ans4>sample string 6</ans4> <chapter>1</chapter> <corans>sample string 7</corans> <correct>1</correct> <difficulty>1</difficulty> <lessonid>1</lessonid> <orderby>1</orderby> <orderby2>1</orderby2> <orderby3>1</orderby3> <photo>QEA=</photo> <tstamp>2025-11-20T21:53:40.1736986+02:00</tstamp> <wrong>1</wrong> </Questions>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Questions| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Question | string |
String length: inclusive between 0 and 600 |
|
| ans1 | string |
String length: inclusive between 0 and 255 |
|
| ans2 | string |
String length: inclusive between 0 and 255 |
|
| ans3 | string |
String length: inclusive between 0 and 255 |
|
| ans4 | string |
String length: inclusive between 0 and 255 |
|
| corans | string |
String length: inclusive between 0 and 5 |
|
| difficulty | integer |
None. |
|
| chapter | integer |
None. |
|
| tstamp | date |
None. |
|
| correct | integer |
None. |
|
| wrong | integer |
None. |
|
| orderby | integer |
None. |
|
| orderby2 | integer |
None. |
|
| photo | Collection of byte |
None. |
|
| lessonid | integer |
None. |
|
| orderby3 | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Question": "sample string 2",
"ans1": "sample string 3",
"ans2": "sample string 4",
"ans3": "sample string 5",
"ans4": "sample string 6",
"corans": "sample string 7",
"difficulty": 1,
"chapter": 1,
"tstamp": "2025-11-20T21:53:40.1886989+02:00",
"correct": 1,
"wrong": 1,
"orderby": 1,
"orderby2": 1,
"photo": "QEA=",
"lessonid": 1,
"orderby3": 1
}
application/xml, text/xml
Sample:
<Questions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/exantasgameapi.Models"> <Id>1</Id> <Question>sample string 2</Question> <ans1>sample string 3</ans1> <ans2>sample string 4</ans2> <ans3>sample string 5</ans3> <ans4>sample string 6</ans4> <chapter>1</chapter> <corans>sample string 7</corans> <correct>1</correct> <difficulty>1</difficulty> <lessonid>1</lessonid> <orderby>1</orderby> <orderby2>1</orderby2> <orderby3>1</orderby3> <photo>QEA=</photo> <tstamp>2025-11-20T21:53:40.1886989+02:00</tstamp> <wrong>1</wrong> </Questions>