POST api/Ads/Getbyid

Request Information

URI Parameters

None.

Body Parameters

Ad
NameDescriptionTypeAdditional information
Id

integer

None.

Image

string

None.

Link

string

None.

CreatedDate

date

None.

CreatedBy

integer

None.

ModifiedDate

date

None.

ModifiedBy

integer

None.

Deleted

date

None.

Status

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Image": "sample string 2",
  "Link": "sample string 3",
  "CreatedDate": "2024-09-09T15:31:00.0729605-07:00",
  "CreatedBy": 1,
  "ModifiedDate": "2024-09-09T15:31:00.0729605-07:00",
  "ModifiedBy": 1,
  "Deleted": "2024-09-09T15:31:00.0729605-07:00",
  "Status": "sample string 4"
}

text/html

Sample:
{"Id":1,"Image":"sample string 2","Link":"sample string 3","CreatedDate":"2024-09-09T15:31:00.0729605-07:00","CreatedBy":1,"ModifiedDate":"2024-09-09T15:31:00.0729605-07:00","ModifiedBy":1,"Deleted":"2024-09-09T15:31:00.0729605-07:00","Status":"sample string 4"}

application/xml, text/xml

Sample:
<Ad xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI">
  <CreatedBy>1</CreatedBy>
  <CreatedDate>2024-09-09T15:31:00.0729605-07:00</CreatedDate>
  <Deleted>2024-09-09T15:31:00.0729605-07:00</Deleted>
  <Id>1</Id>
  <Image>sample string 2</Image>
  <Link>sample string 3</Link>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedDate>2024-09-09T15:31:00.0729605-07:00</ModifiedDate>
  <Status>sample string 4</Status>
</Ad>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponceData
NameDescriptionTypeAdditional information
TotalCount

integer

None.

Message

string

None.

Success

boolean

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalCount": 1,
  "Message": "sample string 2",
  "Success": true,
  "Data": {}
}

text/html

Sample:
{"TotalCount":1,"Message":"sample string 2","Success":true,"Data":{}}

application/xml, text/xml

Sample:
<ResponceData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Formatter">
  <Data />
  <Message>sample string 2</Message>
  <Success>true</Success>
  <TotalCount>1</TotalCount>
</ResponceData>