GET api/Noticias/{id}?token={token}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
|
token | string |
Required |
Body Parameters
None.
Response Information
Resource Description
NoticiaName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Titulo | string |
None. |
|
Entradilla | string |
None. |
|
Fecha | date |
None. |
|
UrlFoto | string |
None. |
|
Enlaces | Collection of NoticiaEnlace |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Titulo": "sample string 2", "Entradilla": "sample string 3", "Fecha": "2024-11-25T14:48:19.9318578+01:00", "UrlFoto": "sample string 5", "Enlaces": [ { "Id": 1, "Texto": "sample string 2", "Url": "sample string 3", "Destino": "sample string 4" }, { "Id": 1, "Texto": "sample string 2", "Url": "sample string 3", "Destino": "sample string 4" } ] }
application/xml, text/xml
Sample:
<Noticia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.model"> <Enlaces> <NoticiaEnlace> <Destino>sample string 4</Destino> <Id>1</Id> <Texto>sample string 2</Texto> <Url>sample string 3</Url> </NoticiaEnlace> <NoticiaEnlace> <Destino>sample string 4</Destino> <Id>1</Id> <Texto>sample string 2</Texto> <Url>sample string 3</Url> </NoticiaEnlace> </Enlaces> <Entradilla>sample string 3</Entradilla> <Fecha>2024-11-25T14:48:19.9318578+01:00</Fecha> <Id>1</Id> <Titulo>sample string 2</Titulo> <UrlFoto>sample string 5</UrlFoto> </Noticia>