Skip to content

Add Search method to SiloService for searching silo entries#60

Open
alvarolivie wants to merge 1 commit intomainfrom
add-silo-search
Open

Add Search method to SiloService for searching silo entries#60
alvarolivie wants to merge 1 commit intomainfrom
add-silo-search

Conversation

@alvarolivie
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new search capability to the Invopop Silo client, enabling callers to query silo entries with optional folder filtering and pagination parameters.

Changes:

  • Introduces SearchSiloEntries request params and SiloEntrySearchCollection response type.
  • Adds (*SiloService).Search(...) to call the /silo/v1/search endpoint with encoded query parameters.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +32 to +37
func (svc *SiloService) Search(ctx context.Context, req *SearchSiloEntries) (*SiloEntrySearchCollection, error) {
p := path.Join(siloBasePath, searchPath)
query := make(url.Values)
if req.Query != "" {
query.Add("q", req.Query)
}
}

// Search performs a search across silo entries.
func (svc *SiloService) Search(ctx context.Context, req *SearchSiloEntries) (*SiloEntrySearchCollection, error) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants