GET api/v2/news/getNews?TenantId={TenantId}&Page={Page}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
TenantId | globally unique identifier |
None. |
|
Page | integer |
None. |
Body Parameters
None.
Response Information
Resource Description
NewsResultName | Description | Type | Additional information |
---|---|---|---|
News | Collection of NewsDetalhesResult |
None. |
|
Succeeded | boolean |
None. |
|
Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{ "News": [ { "TenantId": "b4951bb8-9935-4974-8f23-90e8c37f4bc4", "NewsId": "87264754-5ee4-49cf-b693-08be737c1132", "Title": "sample string 3", "Picture": "sample string 4", "Type": 0, "PublishDate": "2024-11-21T08:54:34.0676237+00:00", "HtmlContent": "sample string 5", "ExternalLink": "sample string 6", "isNew": true, "Succeeded": true, "Errors": [ "sample string 1", "sample string 2" ] }, { "TenantId": "b4951bb8-9935-4974-8f23-90e8c37f4bc4", "NewsId": "87264754-5ee4-49cf-b693-08be737c1132", "Title": "sample string 3", "Picture": "sample string 4", "Type": 0, "PublishDate": "2024-11-21T08:54:34.0676237+00:00", "HtmlContent": "sample string 5", "ExternalLink": "sample string 6", "isNew": true, "Succeeded": true, "Errors": [ "sample string 1", "sample string 2" ] } ], "Succeeded": true, "Errors": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<NewsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models.v2.Result"> <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Errors> <Succeeded xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">true</Succeeded> <News> <NewsDetalhesResult> <Errors xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </Errors> <Succeeded xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">true</Succeeded> <ExternalLink>sample string 6</ExternalLink> <HtmlContent>sample string 5</HtmlContent> <NewsId>87264754-5ee4-49cf-b693-08be737c1132</NewsId> <Picture>sample string 4</Picture> <PublishDate>2024-11-21T08:54:34.0676237+00:00</PublishDate> <TenantId>b4951bb8-9935-4974-8f23-90e8c37f4bc4</TenantId> <Title>sample string 3</Title> <Type>News</Type> <isNew>true</isNew> </NewsDetalhesResult> <NewsDetalhesResult> <Errors xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </Errors> <Succeeded xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">true</Succeeded> <ExternalLink>sample string 6</ExternalLink> <HtmlContent>sample string 5</HtmlContent> <NewsId>87264754-5ee4-49cf-b693-08be737c1132</NewsId> <Picture>sample string 4</Picture> <PublishDate>2024-11-21T08:54:34.0676237+00:00</PublishDate> <TenantId>b4951bb8-9935-4974-8f23-90e8c37f4bc4</TenantId> <Title>sample string 3</Title> <Type>News</Type> <isNew>true</isNew> </NewsDetalhesResult> </News> </NewsResult>