Get a list of organizations by service Id
Description
Get a list of organizations by service Id
Package Details
Interface
IOrganizationManager
Syntax
await _organizationManager.GetByService(int id)
Returns
Task<IEnumerable<Organization>>
API
GET
/api/v1/services/{id}/organizations
Parameters
Parameter | Description | Parameter Type |
---|---|---|
id | The service Id | path |
Returns
On success, 200 Ok
On error, 400 Bad Request
On authorization error, 403 Forbidden
Example
var organizations = await _organizationManager.GetByService(1);