GET api/Tweets/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

TweetDto
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

IsActive

boolean

None.

StartDate

date

None.

ExpirationDate

date

None.

Translations

Collection of TweetTextDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "IsActive": true,
  "StartDate": "2019-05-26T03:30:44.0096371-04:00",
  "ExpirationDate": "2019-05-26T03:30:44.0096371-04:00",
  "Translations": [
    {
      "TweetId": 1,
      "LanguageId": 2,
      "LanguageCode": "sample string 3",
      "Text": "sample string 4"
    },
    {
      "TweetId": 1,
      "LanguageId": 2,
      "LanguageCode": "sample string 3",
      "Text": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<TweetDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <ExpirationDate>2019-05-26T03:30:44.0096371-04:00</ExpirationDate>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <StartDate>2019-05-26T03:30:44.0096371-04:00</StartDate>
  <Title>sample string 2</Title>
  <Translations>
    <TweetTextDto>
      <LanguageCode>sample string 3</LanguageCode>
      <LanguageId>2</LanguageId>
      <Text>sample string 4</Text>
      <TweetId>1</TweetId>
    </TweetTextDto>
    <TweetTextDto>
      <LanguageCode>sample string 3</LanguageCode>
      <LanguageId>2</LanguageId>
      <Text>sample string 4</Text>
      <TweetId>1</TweetId>
    </TweetTextDto>
  </Translations>
</TweetDto>