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": "60e08b78-7aad-4c44-b4f7-820db4198c4a", "NewsId": "87d4e5c1-8c35-4fa9-b1f2-7ab4a3c1400c", "Title": "sample string 3", "Picture": "sample string 4", "Type": 0, "PublishDate": "2024-11-21T10:13:17.7950402+00:00", "HtmlContent": "sample string 5", "ExternalLink": "sample string 6", "isNew": true, "Succeeded": true, "Errors": [ "sample string 1", "sample string 2" ] }, { "TenantId": "60e08b78-7aad-4c44-b4f7-820db4198c4a", "NewsId": "87d4e5c1-8c35-4fa9-b1f2-7ab4a3c1400c", "Title": "sample string 3", "Picture": "sample string 4", "Type": 0, "PublishDate": "2024-11-21T10:13:17.7950402+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>87d4e5c1-8c35-4fa9-b1f2-7ab4a3c1400c</NewsId> <Picture>sample string 4</Picture> <PublishDate>2024-11-21T10:13:17.7950402+00:00</PublishDate> <TenantId>60e08b78-7aad-4c44-b4f7-820db4198c4a</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>87d4e5c1-8c35-4fa9-b1f2-7ab4a3c1400c</NewsId> <Picture>sample string 4</Picture> <PublishDate>2024-11-21T10:13:17.7950402+00:00</PublishDate> <TenantId>60e08b78-7aad-4c44-b4f7-820db4198c4a</TenantId> <Title>sample string 3</Title> <Type>News</Type> <isNew>true</isNew> </NewsDetalhesResult> </News> </NewsResult>