TBS Apps API

<back to all web services

ContentfulWhatsNewBannersRequest

The following routes are available for this service:
GET,POST/UserContentfulWhatsNewBannersGets whats new bannersGets whats new banners for apps from contentful
ContentfulWhatsNewBannersRequest Parameters:
NameParameterData TypeRequiredDescription
PlatformbodystringNo
VersionbodystringNo
ContentfulWhatsNewBannersResponse Parameters:
NameParameterData TypeRequiredDescription
WhatsNewBannerformList<ContentfulWhatsNewBanner>No
ResponseDataBase Parameters:
NameParameterData TypeRequiredDescription
ErrorNoformintNo
MessageformstringNo
Identityformlong?No
ContentfulWhatsNewBanner Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
BannerTitleformstringNo
BannerBodyHtmlformstringNo
BannerImageUrlformstringNo
BannerImageHeightformdecimalNo
BannerImageWidthformdecimalNo
ShowToLoggedInformboolNo
ShowToLoggedOutformboolNo
BannerLinkUrlformstringNo
VisibleOnWebsiteformboolNo
VisibleOnAndroidformboolNo
VisibleOnIOSformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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
}