GetByServiceId() [ServicePermissionManager]
Get By Service Id
Description
Gets a list of all permissions associated to a service.
Package Details
Interface
IServicePermissionManager
Syntax
await ServicePermissionManager.GetByServiceId(int serviceId);
Returns
Task<ICollection<ServicePermission>>
API
GET
/api/v1/services/{id}/permissions
Parameters
Path
id: Id of the service to retrieve the permissions for.
Returns
200 OK - List of permissions
Example
const int id = 11;
var permissions = await _servicePermissionsManager.GetByServiceId(id);