POST api/Training/GetChapters
Request Information
URI Parameters
None.
Body Parameters
GetChaptersModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ChapterIdList | Collection of integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"ChapterIdList": [
1,
2
]
}
text/html
Sample:
{"ChapterIdList":[1,2]}
application/xml, text/xml
Sample:
<GetChaptersModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LMS.API.Models">
<ChapterIdList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ChapterIdList>
</GetChaptersModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GetChaptersReponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ChapterId | integer |
None. |
|
| Number | string |
None. |
|
| Name | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ChapterId": 1,
"Number": "sample string 2",
"Name": "sample string 3"
}
text/html
Sample:
{"ChapterId":1,"Number":"sample string 2","Name":"sample string 3"}
application/xml, text/xml
Sample:
<GetChaptersReponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LMS.API.Models"> <ChapterId>1</ChapterId> <Name>sample string 3</Name> <Number>sample string 2</Number> </GetChaptersReponseModel>