openlibraryenvironment/gokb

View Provider: Selection of curatory group not supported?

Closed this issue · 4 comments

Selecting providers by curatory group does not give other result, so it seems that this query parameter is not supported yet.

Please add the complete request that was used when the error occurred.

/rest/provider?curatoryGroupId=62898&_include=id,name&offset=0&limit=10

in contrast to

/rest/users?curatoryGroupId=415860&_include=id,username,email&offset=0&limit=10

that is working

I'm afraid /users is different from all other endpoints in that regard. In general the request parameters will be the same as the property name returned in the response objects. So it should be

/rest/provider?curatoryGroups=62898&_include=id,name&offset=0&limit=10

I will add this format for users as well, so we'll be consistent throughout.

Okay, using the curatoryGroups it works.