GET ClassNewsAPI/GetClassNewsByClassNewsID?classnewsid={classnewsid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
classnewsid

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ClassNews
NameDescriptionTypeAdditional information
ClassNewsID

integer

None.

Active

boolean

None.

NewsText

string

None.

pkCourseSectionID

integer

None.

TheNewsDateAdded

date

None.

TheNewsDateAddedStr

string

None.

SelectedSectionArray

Collection of integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ClassNewsID": 1,
    "Active": true,
    "NewsText": "sample string 3",
    "pkCourseSectionID": 4,
    "TheNewsDateAdded": "2021-01-23T07:49:58.8424919+00:00",
    "TheNewsDateAddedStr": "sample string 6",
    "SelectedSectionArray": [
      1,
      2
    ]
  },
  {
    "ClassNewsID": 1,
    "Active": true,
    "NewsText": "sample string 3",
    "pkCourseSectionID": 4,
    "TheNewsDateAdded": "2021-01-23T07:49:58.8424919+00:00",
    "TheNewsDateAddedStr": "sample string 6",
    "SelectedSectionArray": [
      1,
      2
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfClassNews xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QMA2020.Models">
  <ClassNews>
    <Active>true</Active>
    <ClassNewsID>1</ClassNewsID>
    <NewsText>sample string 3</NewsText>
    <SelectedSectionArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </SelectedSectionArray>
    <TheNewsDateAdded>2021-01-23T07:49:58.8424919+00:00</TheNewsDateAdded>
    <TheNewsDateAddedStr>sample string 6</TheNewsDateAddedStr>
    <pkCourseSectionID>4</pkCourseSectionID>
  </ClassNews>
  <ClassNews>
    <Active>true</Active>
    <ClassNewsID>1</ClassNewsID>
    <NewsText>sample string 3</NewsText>
    <SelectedSectionArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </SelectedSectionArray>
    <TheNewsDateAdded>2021-01-23T07:49:58.8424919+00:00</TheNewsDateAdded>
    <TheNewsDateAddedStr>sample string 6</TheNewsDateAddedStr>
    <pkCourseSectionID>4</pkCourseSectionID>
  </ClassNews>
</ArrayOfClassNews>