heilog.ch.Api

<back to all web services

GetNewsByIdRequest

The following routes are available for this service:
GET/news/{NewsId}
GetNewsByIdRequest Parameters:
NameParameterData TypeRequiredDescription
NewsIdpathlongNo
GetNewsByIdResponse Parameters:
NameParameterData TypeRequiredDescription
NewsformNewsDetailDtoNo
NewsDetailDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
ValidFromformDateTimeNo
ValidToformDateTime?No
UrlformstringNo
FileNameformstringNo
IsActiveformboolNo
LocalizationsformList<NewsLocalizationDto>No
NewsLocalizationDto Parameters:
NameParameterData TypeRequiredDescription
LanguageCodeformLanguageCodeNo
TitleformstringNo
TextformstringNo
LanguageCode Enum:
NameValue
de1
fr2
it3

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.

GET /news/{NewsId} HTTP/1.1 
Host: heidak-api.build.exanic.ch 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	news: 
	{
		id: 0,
		validFrom: 0001-01-01,
		validTo: 0001-01-01,
		url: String,
		fileName: String,
		isActive: False,
		localizations: 
		[
			{
				languageCode: 1,
				title: String,
				text: String
			}
		]
	}
}