Skip to content

Add LookupResources example#158

Merged
tstirrat15 merged 1 commit intoauthzed:mainfrom
ivanauth:add-lookup-resources-example
Nov 17, 2025
Merged

Add LookupResources example#158
tstirrat15 merged 1 commit intoauthzed:mainfrom
ivanauth:add-lookup-resources-example

Conversation

@ivanauth
Copy link
Copy Markdown
Contributor

Fixes #74

Adds a comprehensive example demonstrating how to use LookupResources with streaming responses.

What's Included

  • Complete working example in examples/v1/lookup_resources.rb
  • Shows how to handle streaming LookupResourcesResponse
  • Demonstrates collecting results into an array
  • Includes examples for multiple permissions (read and write)
  • Follows the same pattern as existing examples in the repo

The example clearly shows how to interact with the stream-based API and collect resource IDs.

@ivanauth ivanauth requested a review from a team as a code owner November 13, 2025 23:42
Copy link
Copy Markdown
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for putting this up!

@tstirrat15 tstirrat15 merged commit c5b05dd into authzed:main Nov 17, 2025
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please Add LookupResources Example

2 participants