using System.Collections.Immutable; using Connected.Annotations; using Connected.ServiceModel; namespace Connected.Security.Identity; [Service] [ServiceUrl(SecurityRoutes.Roles)] public interface IRoleService { [ServiceMethod(ServiceMethodVerbs.Get)] Task?> Query(); [ServiceMethod(ServiceMethodVerbs.Get)] Task?> Query(PrimaryKeyListArgs args); [ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)] Task Select(PrimaryKeyArgs args); [ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)] Task Select(NameArgs args); [ServiceMethod(ServiceMethodVerbs.Post)] Task Insert(RoleArgs args); [ServiceMethod(ServiceMethodVerbs.Post | ServiceMethodVerbs.Patch)] Task Update(RoleUpdateArgs args); [ServiceMethod(ServiceMethodVerbs.Post | ServiceMethodVerbs.Delete)] Task Delete(PrimaryKeyArgs args); }