GET api/News/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
News| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Title | string |
None. |
|
| Body | string |
None. |
|
| Category | string |
None. |
|
| Published | date |
None. |
|
| Created | date |
None. |
|
| UserId | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ID": 1,
"Title": "sample string 2",
"Body": "sample string 3",
"Category": "sample string 4",
"Published": "2025-12-20T14:34:49.7630987+01:00",
"Created": "2025-12-20T14:34:49.7630987+01:00",
"UserId": "sample string 7"
}
application/xml, text/xml
Sample:
<News xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GRUBER.Tennis.App.Server.Models"> <Body>sample string 3</Body> <Category>sample string 4</Category> <Created>2025-12-20T14:34:49.7630987+01:00</Created> <ID>1</ID> <Published>2025-12-20T14:34:49.7630987+01:00</Published> <Title>sample string 2</Title> <UserId>sample string 7</UserId> </News>