GET v{version}/news/{id}
Gets news by Id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
integer |
integer |
Required |
| version | string |
None. |
Body Parameters
None.
Response Information
Resource Description
The news if found
NewsViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| NewsId | integer |
None. |
|
| Title | string |
None. |
|
| Text | string |
None. |
|
| CreatedDate | date |
None. |
|
| Firstname | string |
None. |
|
| Lastname | string |
None. |
|
| Start | date |
None. |
|
| End | date |
None. |
|
| HasPicture | boolean |
None. |
|
| Blobs | Collection of BlobViewModel |
None. |
|
| Blob | BlobViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"NewsId": 1,
"Title": "sample string 2",
"Text": "sample string 3",
"CreatedDate": "2025-12-18T20:42:03.6647084+01:00",
"Firstname": "sample string 5",
"Lastname": "sample string 6",
"Start": "2025-12-18T20:42:03.6647084+01:00",
"End": "2025-12-18T20:42:03.6647084+01:00",
"HasPicture": true,
"Blobs": [
{
"BlobId": "sample string 1",
"Name": "sample string 2",
"MimeType": "sample string 3",
"Size": 4,
"Extention": "sample string 5",
"UniqueId": 158727831
},
{
"BlobId": "sample string 1",
"Name": "sample string 2",
"MimeType": "sample string 3",
"Size": 4,
"Extention": "sample string 5",
"UniqueId": 158727831
}
],
"Blob": {
"BlobId": "sample string 1",
"Name": "sample string 2",
"MimeType": "sample string 3",
"Size": 4,
"Extention": "sample string 5",
"UniqueId": 158727831
}
}
application/xml, text/xml
Sample:
<NewsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpeedadminApi.ViewModels"> <Blob /> <CreatedDate>2025-12-18T20:42:03.6647084+01:00</CreatedDate> <Text>sample string 3</Text> <Title>sample string 2</Title> </NewsViewModel>