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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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.test.exanic.ch Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"news":[{"id":0,"validFrom":"0001-01-01T00:00:00.0000000","title":"String","isActive":false}],"totalEntities":0,"page":0,"pageSize":0,"property":"String","isAscending":false}