GET api/DMS/GetSections?chapterId={chapterId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
chapterId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Section
NameDescriptionTypeAdditional information
Id

integer

None.

SectionName

string

None.

ChapterId

integer

None.

Topics

Collection of Topic

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "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:
<ArrayOfSection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMBS.DO.Models">
  <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>
</ArrayOfSection>

multipart/form-data

Sample:
<ArrayOfSection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMBS.DO.Models"><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></ArrayOfSection>