Skip to content

feat: add search to the public API - #921

Open
razajahangir wants to merge 3 commits into
dev-null-sh:productionfrom
razajahangir:feat/api-search
Open

razajahangir wants to merge 3 commits into
dev-null-sh:productionfrom
razajahangir:feat/api-search

Conversation

@razajahangir

Copy link
Copy Markdown

Summary

  • Add public GET /api/v1/search/commits and GET /api/v1/search/users, reusing the web search queries.
  • Signed requests apply mutes and blocks, and people results include follow flags.
  • API search 429s return code: rate_limited, matching the rest of the signed API.

Test plan

  • GET /api/v1/search/commits?q=feature as a guest returns { data: [...] }
  • A signed request hides muted/blocked authors from both searches
  • Commit search 16th request in a minute returns 429 with rate_limited
  • Web /search/commits still 429s with only the slow-down message

Made with Cursor

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.

1 participant