GetByService() [OrganizationManager]
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
int id = 1;
var organizations = await _organizationManager.GetByService(id);