feat(api): Code search REST endpoint #10

Open
opened 2026-05-08 04:42:57 +00:00 by jmiller · 0 comments
Owner

Add REST API for full-text code search.

Proposed

  • GET /repos/{owner}/{repo}/code/search?q={query}
  • GET /code/search?q={query}&owner={org}

Criteria

  • Full-text with regex
  • Results with file path, line, context
  • Filter by language/extension
  • Pagination
  • Respects permissions

Ref: github.com/go-gitea/gitea/issues/31375

Add REST API for full-text code search. ## Proposed - `GET /repos/{owner}/{repo}/code/search?q={query}` - `GET /code/search?q={query}&owner={org}` ## Criteria - [ ] Full-text with regex - [ ] Results with file path, line, context - [ ] Filter by language/extension - [ ] Pagination - [ ] Respects permissions Ref: github.com/go-gitea/gitea/issues/31375
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#10