GET api/applicant/GetAllSections?lang={lang}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lang | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of SectionsDataName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
section | string |
None. |
|
videoUrl | string |
None. |
|
questions | Collection of QuestionsData |
None. |
Response Formats
application/json, text/json
Sample:
[ { "id": 1, "section": "sample string 2", "videoUrl": "sample string 3", "questions": [ { "id": 1, "sid": 2, "question": "sample string 3", "desc": "sample string 4", "order": 5, "answers": [ { "id": 1, "qid": 2, "isCorrect": true, "answer": "sample string 4" }, { "id": 1, "qid": 2, "isCorrect": true, "answer": "sample string 4" } ] }, { "id": 1, "sid": 2, "question": "sample string 3", "desc": "sample string 4", "order": 5, "answers": [ { "id": 1, "qid": 2, "isCorrect": true, "answer": "sample string 4" }, { "id": 1, "qid": 2, "isCorrect": true, "answer": "sample string 4" } ] } ] }, { "id": 1, "section": "sample string 2", "videoUrl": "sample string 3", "questions": [ { "id": 1, "sid": 2, "question": "sample string 3", "desc": "sample string 4", "order": 5, "answers": [ { "id": 1, "qid": 2, "isCorrect": true, "answer": "sample string 4" }, { "id": 1, "qid": 2, "isCorrect": true, "answer": "sample string 4" } ] }, { "id": 1, "sid": 2, "question": "sample string 3", "desc": "sample string 4", "order": 5, "answers": [ { "id": 1, "qid": 2, "isCorrect": true, "answer": "sample string 4" }, { "id": 1, "qid": 2, "isCorrect": true, "answer": "sample string 4" } ] } ] } ]
application/xml, text/xml
Sample:
<ArrayOfSectionsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FDF.APIs.Models"> <SectionsData> <id>1</id> <questions> <QuestionsData> <answers> <AnswersData> <answer>sample string 4</answer> <id>1</id> <isCorrect>true</isCorrect> <qid>2</qid> </AnswersData> <AnswersData> <answer>sample string 4</answer> <id>1</id> <isCorrect>true</isCorrect> <qid>2</qid> </AnswersData> </answers> <desc>sample string 4</desc> <id>1</id> <order>5</order> <question>sample string 3</question> <sid>2</sid> </QuestionsData> <QuestionsData> <answers> <AnswersData> <answer>sample string 4</answer> <id>1</id> <isCorrect>true</isCorrect> <qid>2</qid> </AnswersData> <AnswersData> <answer>sample string 4</answer> <id>1</id> <isCorrect>true</isCorrect> <qid>2</qid> </AnswersData> </answers> <desc>sample string 4</desc> <id>1</id> <order>5</order> <question>sample string 3</question> <sid>2</sid> </QuestionsData> </questions> <section>sample string 2</section> <videoUrl>sample string 3</videoUrl> </SectionsData> <SectionsData> <id>1</id> <questions> <QuestionsData> <answers> <AnswersData> <answer>sample string 4</answer> <id>1</id> <isCorrect>true</isCorrect> <qid>2</qid> </AnswersData> <AnswersData> <answer>sample string 4</answer> <id>1</id> <isCorrect>true</isCorrect> <qid>2</qid> </AnswersData> </answers> <desc>sample string 4</desc> <id>1</id> <order>5</order> <question>sample string 3</question> <sid>2</sid> </QuestionsData> <QuestionsData> <answers> <AnswersData> <answer>sample string 4</answer> <id>1</id> <isCorrect>true</isCorrect> <qid>2</qid> </AnswersData> <AnswersData> <answer>sample string 4</answer> <id>1</id> <isCorrect>true</isCorrect> <qid>2</qid> </AnswersData> </answers> <desc>sample string 4</desc> <id>1</id> <order>5</order> <question>sample string 3</question> <sid>2</sid> </QuestionsData> </questions> <section>sample string 2</section> <videoUrl>sample string 3</videoUrl> </SectionsData> </ArrayOfSectionsData>