| GET,POST | /UserContentfulWhatsNewBanners | Gets whats new banners | Gets whats new banners for apps from contentful |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Platform | body | string | No | |
| Version | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| WhatsNewBanner | form | List<ContentfulWhatsNewBanner> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ErrorNo | form | int | No | |
| Message | form | string | No | |
| Identity | form | long? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| BannerTitle | form | string | No | |
| BannerBodyHtml | form | string | No | |
| BannerImageUrl | form | string | No | |
| BannerImageHeight | form | decimal | No | |
| BannerImageWidth | form | decimal | No | |
| ShowToLoggedIn | form | bool | No | |
| ShowToLoggedOut | form | bool | No | |
| BannerLinkUrl | form | string | No | |
| VisibleOnWebsite | form | bool | No | |
| VisibleOnAndroid | form | bool | No | |
| VisibleOnIOS | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /UserContentfulWhatsNewBanners HTTP/1.1
Host: tstextweb20.np.bluebet.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Platform: String,
Version: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
WhatsNewBanner:
[
{
Id: 0,
BannerTitle: String,
BannerBodyHtml: String,
BannerImageUrl: String,
BannerImageHeight: 0,
BannerImageWidth: 0,
ShowToLoggedIn: False,
ShowToLoggedOut: False,
BannerLinkUrl: String,
VisibleOnWebsite: False,
VisibleOnAndroid: False,
VisibleOnIOS: False
}
],
ErrorNo: 0,
Message: String,
Identity: 0
}