GET api/DMS/GetChapters
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of Chapter| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ChapterName | string |
None. |
|
| Sections | Collection of Section |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"ChapterName": "sample string 2",
"Sections": [
{
"Id": 1,
"SectionName": "sample string 2",
"ChapterId": 3,
"Topics": [
{
"Id": 1,
"TopicName": "sample string 2",
"Content": "sample string 3",
"SectionId": 4
},
{
"Id": 1,
"TopicName": "sample string 2",
"Content": "sample string 3",
"SectionId": 4
}
]
},
{
"Id": 1,
"SectionName": "sample string 2",
"ChapterId": 3,
"Topics": [
{
"Id": 1,
"TopicName": "sample string 2",
"Content": "sample string 3",
"SectionId": 4
},
{
"Id": 1,
"TopicName": "sample string 2",
"Content": "sample string 3",
"SectionId": 4
}
]
}
]
},
{
"Id": 1,
"ChapterName": "sample string 2",
"Sections": [
{
"Id": 1,
"SectionName": "sample string 2",
"ChapterId": 3,
"Topics": [
{
"Id": 1,
"TopicName": "sample string 2",
"Content": "sample string 3",
"SectionId": 4
},
{
"Id": 1,
"TopicName": "sample string 2",
"Content": "sample string 3",
"SectionId": 4
}
]
},
{
"Id": 1,
"SectionName": "sample string 2",
"ChapterId": 3,
"Topics": [
{
"Id": 1,
"TopicName": "sample string 2",
"Content": "sample string 3",
"SectionId": 4
},
{
"Id": 1,
"TopicName": "sample string 2",
"Content": "sample string 3",
"SectionId": 4
}
]
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfChapter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMBS.DO.Models">
<Chapter>
<ChapterName>sample string 2</ChapterName>
<Id>1</Id>
<Sections>
<Section>
<ChapterId>3</ChapterId>
<Id>1</Id>
<SectionName>sample string 2</SectionName>
<Topics>
<Topic>
<Content>sample string 3</Content>
<Id>1</Id>
<SectionId>4</SectionId>
<TopicName>sample string 2</TopicName>
</Topic>
<Topic>
<Content>sample string 3</Content>
<Id>1</Id>
<SectionId>4</SectionId>
<TopicName>sample string 2</TopicName>
</Topic>
</Topics>
</Section>
<Section>
<ChapterId>3</ChapterId>
<Id>1</Id>
<SectionName>sample string 2</SectionName>
<Topics>
<Topic>
<Content>sample string 3</Content>
<Id>1</Id>
<SectionId>4</SectionId>
<TopicName>sample string 2</TopicName>
</Topic>
<Topic>
<Content>sample string 3</Content>
<Id>1</Id>
<SectionId>4</SectionId>
<TopicName>sample string 2</TopicName>
</Topic>
</Topics>
</Section>
</Sections>
</Chapter>
<Chapter>
<ChapterName>sample string 2</ChapterName>
<Id>1</Id>
<Sections>
<Section>
<ChapterId>3</ChapterId>
<Id>1</Id>
<SectionName>sample string 2</SectionName>
<Topics>
<Topic>
<Content>sample string 3</Content>
<Id>1</Id>
<SectionId>4</SectionId>
<TopicName>sample string 2</TopicName>
</Topic>
<Topic>
<Content>sample string 3</Content>
<Id>1</Id>
<SectionId>4</SectionId>
<TopicName>sample string 2</TopicName>
</Topic>
</Topics>
</Section>
<Section>
<ChapterId>3</ChapterId>
<Id>1</Id>
<SectionName>sample string 2</SectionName>
<Topics>
<Topic>
<Content>sample string 3</Content>
<Id>1</Id>
<SectionId>4</SectionId>
<TopicName>sample string 2</TopicName>
</Topic>
<Topic>
<Content>sample string 3</Content>
<Id>1</Id>
<SectionId>4</SectionId>
<TopicName>sample string 2</TopicName>
</Topic>
</Topics>
</Section>
</Sections>
</Chapter>
</ArrayOfChapter>
multipart/form-data
Sample:
<ArrayOfChapter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMBS.DO.Models"><Chapter><ChapterName>sample string 2</ChapterName><Id>1</Id><Sections><Section><ChapterId>3</ChapterId><Id>1</Id><SectionName>sample string 2</SectionName><Topics><Topic><Content>sample string 3</Content><Id>1</Id><SectionId>4</SectionId><TopicName>sample string 2</TopicName></Topic><Topic><Content>sample string 3</Content><Id>1</Id><SectionId>4</SectionId><TopicName>sample string 2</TopicName></Topic></Topics></Section><Section><ChapterId>3</ChapterId><Id>1</Id><SectionName>sample string 2</SectionName><Topics><Topic><Content>sample string 3</Content><Id>1</Id><SectionId>4</SectionId><TopicName>sample string 2</TopicName></Topic><Topic><Content>sample string 3</Content><Id>1</Id><SectionId>4</SectionId><TopicName>sample string 2</TopicName></Topic></Topics></Section></Sections></Chapter><Chapter><ChapterName>sample string 2</ChapterName><Id>1</Id><Sections><Section><ChapterId>3</ChapterId><Id>1</Id><SectionName>sample string 2</SectionName><Topics><Topic><Content>sample string 3</Content><Id>1</Id><SectionId>4</SectionId><TopicName>sample string 2</TopicName></Topic><Topic><Content>sample string 3</Content><Id>1</Id><SectionId>4</SectionId><TopicName>sample string 2</TopicName></Topic></Topics></Section><Section><ChapterId>3</ChapterId><Id>1</Id><SectionName>sample string 2</SectionName><Topics><Topic><Content>sample string 3</Content><Id>1</Id><SectionId>4</SectionId><TopicName>sample string 2</TopicName></Topic><Topic><Content>sample string 3</Content><Id>1</Id><SectionId>4</SectionId><TopicName>sample string 2</TopicName></Topic></Topics></Section></Sections></Chapter></ArrayOfChapter>