repositories
Grep repository (deprecated)
Changed onDeprecated: use GET /api/v1/search/grep instead. Searches file contents in a repository using git grep.
get/repositories/{id}/grep
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v1/repositories/{id}/grep
- AuthAPI key in header X-API-KEY
Path parameters
idinteger required
Repository ID
Query parameters
patternstring required
Search pattern
globstring
Glob pattern to filter files
limitinteger
Maximum results (default 50, max 200)
Response
OK
Changes
- info
endpoint added
- info
- info
api path removed with deprecation
- info