casdoor / casdoor-dotnet-sdk

.NET client SDK for Casdoor
https://github.com/casdoor/casdoor
Apache License 2.0
28 stars 25 forks source link

feat: add roleModel, permissionModel, roleApi, permissionApi #34

Closed ISulimanov closed 1 year ago

ISulimanov commented 1 year ago

example of usage:

var roles = await client.GetRolesAsync(); var perm = (await client.GetPermissionsByRoleAsync(roles.First().Name))?.Data; var permissions = await client.GetPermissionsAsync();

casbin-bot commented 1 year ago

@seriouszyx @ComradeProgrammer @Resulte please review

hsluoyz commented 1 year ago

@ISulimanov plz add new APIs to README (as API reference or code examples)

ISulimanov commented 1 year ago

@ISulimanov plz add new APIs to README (as API reference or code examples)

Added few example to README, please check

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 0.2.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: