GET | /news |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
SearchString | query | string | No | |
IsActive | query | bool? | No | |
Property | query | string | No | |
IsAscending | query | bool | No | |
PageSize | query | int | No | |
Page | query | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
News | form | List<NewsListItemDto> | No | |
TotalEntities | form | long | No | |
Page | form | int | No | |
PageSize | form | int | No | |
Property | form | string | No | |
IsAscending | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | long | No | |
ValidFrom | form | DateTime | No | |
Title | form | string | No | |
IsActive | 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.
GET /news 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, title: String, isActive: False } ], totalEntities: 0, page: 0, pageSize: 0, property: String, isAscending: False }