openstad / openstad-oauth2-server

MIT License
0 stars 8 forks source link

fetch the userroles with belonging to the client on given parameters #115

Closed LorenzoJokhan closed 2 years ago

LorenzoJokhan commented 2 years ago

Description

Is needed by pr https://github.com/openstad/openstad-management-panel/pull/68 Added the {withRelated userRoles} to the client.js, making it possible to fetch all userroles that belong to the given client. Userroles can be filtered by using the given params ?withUserRoles=1&excludingRoles=admin,member,etc

Please include

Type of change

Feature

Documentation

Userroles can be filtered by using the given params ?withUserRoles=1&excludingRoles=admin,member,etc

Is the documentation updated, maybe a link

Tests

Tested using insomnia on route /api/admin/client/{a client id}?withUserRoles=1&excludingRoles=admin