GET api/Advertisements
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of Advertisement| Name | Description | Type | Additional information |
|---|---|---|---|
| AdvertisementId | integer |
None. |
|
| Description | string |
None. |
|
| ImagePath | string |
None. |
|
| StatusId | integer |
None. |
|
| CreatedDate | date |
None. |
|
| CreatedBy | integer |
None. |
|
| UpdatedDate | date |
None. |
|
| UpdatedBy | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"AdvertisementId": 1,
"Description": "sample string 2",
"ImagePath": "sample string 3",
"StatusId": 1,
"CreatedDate": "2025-12-11T15:28:15.4990933+05:30",
"CreatedBy": 1,
"UpdatedDate": "2025-12-11T15:28:15.4990933+05:30",
"UpdatedBy": 1
},
{
"AdvertisementId": 1,
"Description": "sample string 2",
"ImagePath": "sample string 3",
"StatusId": 1,
"CreatedDate": "2025-12-11T15:28:15.4990933+05:30",
"CreatedBy": 1,
"UpdatedDate": "2025-12-11T15:28:15.4990933+05:30",
"UpdatedBy": 1
}
]
application/xml, text/xml
Sample:
<ArrayOfAdvertisement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">
<Advertisement>
<AdvertisementId>1</AdvertisementId>
<CreatedBy>1</CreatedBy>
<CreatedDate>2025-12-11T15:28:15.4990933+05:30</CreatedDate>
<Description>sample string 2</Description>
<ImagePath>sample string 3</ImagePath>
<StatusId>1</StatusId>
<UpdatedBy>1</UpdatedBy>
<UpdatedDate>2025-12-11T15:28:15.4990933+05:30</UpdatedDate>
</Advertisement>
<Advertisement>
<AdvertisementId>1</AdvertisementId>
<CreatedBy>1</CreatedBy>
<CreatedDate>2025-12-11T15:28:15.4990933+05:30</CreatedDate>
<Description>sample string 2</Description>
<ImagePath>sample string 3</ImagePath>
<StatusId>1</StatusId>
<UpdatedBy>1</UpdatedBy>
<UpdatedDate>2025-12-11T15:28:15.4990933+05:30</UpdatedDate>
</Advertisement>
</ArrayOfAdvertisement>