GET api/notices/{type}/author/{authorId}?dateFrom={dateFrom}&dateTo={dateTo}&pageIndex={pageIndex}&pageTotal={pageTotal}&pager={pager}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
type | string |
Required |
|
authorId | integer |
Required |
|
dateFrom | date |
None. |
|
dateTo | date |
None. |
|
pageIndex | integer |
Default value is 0 |
|
pageTotal | integer |
Default value is 10 |
|
pager | boolean |
Default value is True |
Body Parameters
None.
Response Information
Resource Description
ResponseResultOfListOfNoticeInfoName | Description | Type | Additional information |
---|---|---|---|
Data | Collection of NoticeInfo |
None. |
|
Message | string |
None. |
|
Status | integer |
None. |
|
Page | PageInfo |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": [ { "ActionUrlFormat": "sample string 1", "Id": 2, "IsRead": true, "Message": "sample string 4", "SendFrom": 5, "AuthorSendFrom": "sample string 6", "SendTime": "2024-12-07T09:15:46.1594178+08:00", "SendTo": 8, "AuthorSendTo": "sample string 9", "Type": 0 }, { "ActionUrlFormat": "sample string 1", "Id": 2, "IsRead": true, "Message": "sample string 4", "SendFrom": 5, "AuthorSendFrom": "sample string 6", "SendTime": "2024-12-07T09:15:46.1594178+08:00", "SendTo": 8, "AuthorSendTo": "sample string 9", "Type": 0 } ], "Message": "sample string 1", "Status": 2, "Page": { "PageIndex": 1, "PageTotal": 2, "DataTotal": 3, "PostSize": 4, "TagSize": 5, "ThemeSize": 6 } }
application/xml, text/xml
Sample:
<ResponseResultOfArrayOfNoticeInfoL8bO21_SO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlogAdmin.Models"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BlogAdmin.Contracts.Notice"> <d2p1:NoticeInfo> <d2p1:ActionUrlFormat>sample string 1</d2p1:ActionUrlFormat> <d2p1:AuthorSendFrom>sample string 6</d2p1:AuthorSendFrom> <d2p1:AuthorSendTo>sample string 9</d2p1:AuthorSendTo> <d2p1:Id>2</d2p1:Id> <d2p1:IsRead>true</d2p1:IsRead> <d2p1:Message>sample string 4</d2p1:Message> <d2p1:SendFrom>5</d2p1:SendFrom> <d2p1:SendTime>2024-12-07T09:15:46.1594178+08:00</d2p1:SendTime> <d2p1:SendTo>8</d2p1:SendTo> <d2p1:Type>NewRegister</d2p1:Type> </d2p1:NoticeInfo> <d2p1:NoticeInfo> <d2p1:ActionUrlFormat>sample string 1</d2p1:ActionUrlFormat> <d2p1:AuthorSendFrom>sample string 6</d2p1:AuthorSendFrom> <d2p1:AuthorSendTo>sample string 9</d2p1:AuthorSendTo> <d2p1:Id>2</d2p1:Id> <d2p1:IsRead>true</d2p1:IsRead> <d2p1:Message>sample string 4</d2p1:Message> <d2p1:SendFrom>5</d2p1:SendFrom> <d2p1:SendTime>2024-12-07T09:15:46.1594178+08:00</d2p1:SendTime> <d2p1:SendTo>8</d2p1:SendTo> <d2p1:Type>NewRegister</d2p1:Type> </d2p1:NoticeInfo> </Data> <Message>sample string 1</Message> <Page> <DataTotal>3</DataTotal> <PageIndex>1</PageIndex> <PageTotal>2</PageTotal> <PostSize>4</PostSize> <TagSize>5</TagSize> <ThemeSize>6</ThemeSize> </Page> <Status>2</Status> </ResponseResultOfArrayOfNoticeInfoL8bO21_SO>