question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get a resource by Id and attributes in query parameters

See original GitHub issue

Do you support Get API by Id and attributes in query parameters?

The main problem is that we have some requests like this from the azure user provisioning service: https://test.com/api/v1/scim/Groups/{id}?excludedAttributes=members

but I think there is no way to handle this attributes with SimpleIdServer.Scim.Api.BaseApiController . There is no Get method that accepts Get(string id, [FromQuery] SCIMResourceAttributes requestAttributes) to handle this kind of request.

Based on RFC for attributes: The following attributes control which attributes SHALL be returned with a returned resource. SCIM clients MAY use one of these two OPTIONAL parameters, which MUST be supported by SCIM service providers.

Is there any way to handle this behavior?

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
simpleidservercommented, Dec 30, 2022

Good remark 😃. I made some modifications to pass those information into the repository. Only needed attributes are returned by the SQL statement. The same logic is used by the search operation. Pre-release package is available here:

dotnet add package SimpleIdServer.Scim --version 2.0.23-ci-00379 --source https://www.myget.org/F/advance-ict/api/v3/index.json
1reaction
simpleidservercommented, Dec 30, 2022

This feature will be released next week, once the ticket #343 is fully tested 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

REST API DESIGN - Getting a resource through REST with ...
It's almost like it's trying to imitate query parameters with path parameters. GET /users?id={id} GET /users?email={email}.
Read more >
Query parameters and operators
Query parameters and operators ... To fetch a resource whose unique ID is known, you can supply the ID of the resource as...
Read more >
REST API Design Best Practices for Parameter and Query ...
Where to put the parameters for APIs? Best practices for parameter and query string usage in REST APIs.
Read more >
Using Query Parameters
You can use the following query parameters when calling the Get Users, Get Roles, Get Events, and Get Groups resource APIs.
Read more >
REST API for Unified Inventory Management
Gets the resource that matches the specified ID. Attribute selection is enabled for all first-level attributes. Optionally, use the expand parameter to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found