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 .csv suffix or ?format=csv

HTTP + CSV

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.test.exanic.ch 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"news":{"id":0,"validFrom":"0001-01-01T00:00:00.0000000","validTo":"0001-01-01T00:00:00.0000000","url":"String","fileName":"String","isActive":false,"localizations":[{"languageCode":1,"title":"String","text":"String"}]}}