How can I evaluate user permission over REST API?

Hi fellows,
Keycloak has evaluate interface(client/{yourClient}/Authorization/Evaluate) for access control for a specific resource and looks perrty.I want to use same mechanism over REST API. Im trying to construct something like that; I will create policies and permissions for resource and ask to keycloak; “Heyy, can {user} do that?” on every request to my service. If its not possible what can you suggest for alternative solutions?

Best regards

Take a look at the authorization services guide: