Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Get a list of

...

notices by service id(s)

Description

Get a list of outage notices for a specific service(s).

Package Details

Interface

IOutageNoticeManagerINoticeManager

Syntax

await OutageNoticeManagerNoticeManager.GetByServiceId(int serviceIdICollection<int> serviceIds, NoticeType? noticeTypeCd);

Returns

Task<ICollection<OutageNotice>>Task<ICollection<Notice>>

API

GET
/api/v1/services/{idcomma-delimieted serviceIds}/outage-notices

Parameters

Path
id: The service id

Query string

noticeTypeCd : optional

Returns

200 OK - List of outage notices

Example

Code Block
languagec#
const int serviceId = 11

...

;
var notices = await _

...

noticeManager.GetByServiceId(serviceId, null);