GET api/Noticias?token={token}&destacadas={destacadas}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
token | string |
Required |
|
destacadas | boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
Collection of 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:22:17.7723313+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" } ] }, { "Id": 1, "Titulo": "sample string 2", "Entradilla": "sample string 3", "Fecha": "2024-11-25T14:22:17.7723313+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:
<ArrayOfNoticia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.model"> <Noticia> <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:22:17.7723313+01:00</Fecha> <Id>1</Id> <Titulo>sample string 2</Titulo> <UrlFoto>sample string 5</UrlFoto> </Noticia> <Noticia> <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:22:17.7723313+01:00</Fecha> <Id>1</Id> <Titulo>sample string 2</Titulo> <UrlFoto>sample string 5</UrlFoto> </Noticia> </ArrayOfNoticia>