GET api/SportNews

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of SportNew
NameDescriptionTypeAdditional information
Id

integer

None.

Sport

string

None.

Title

string

None.

Description

string

None.

DateAndTime

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Sport": "sample string 2",
    "Title": "sample string 3",
    "Description": "sample string 4",
    "DateAndTime": "2024-06-16T12:26:27.1385409-07:00"
  },
  {
    "Id": 1,
    "Sport": "sample string 2",
    "Title": "sample string 3",
    "Description": "sample string 4",
    "DateAndTime": "2024-06-16T12:26:27.1385409-07:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSportNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BetonWebSite">
  <SportNew>
    <DateAndTime>2024-06-16T12:26:27.1385409-07:00</DateAndTime>
    <Description>sample string 4</Description>
    <Id>1</Id>
    <Sport>sample string 2</Sport>
    <Title>sample string 3</Title>
  </SportNew>
  <SportNew>
    <DateAndTime>2024-06-16T12:26:27.1385409-07:00</DateAndTime>
    <Description>sample string 4</Description>
    <Id>1</Id>
    <Sport>sample string 2</Sport>
    <Title>sample string 3</Title>
  </SportNew>
</ArrayOfSportNew>