Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Get a list of expired notices by user id

Description

Retrieves a list of notices for a specific user.

Package Details

Interface

INoticeManager

Syntax

await NoticeManager.GetByUserId(int userId, int? page = null, int? pageSize = null);

Returns

Task<ICollection<Notice>>

API

GET
/api/v1/users/{userId}/expirednotices

Parameters

Path
id: The user id

Query string (optional)

page: page number

pageSize: size of the page

Returns

200 OK - List of notices

Example

const int userId = 123;
var notices = await _noticeManager.GetExpiredNoticesByUserId(userId, 1, 10);

  • No labels