Search API endpoint returns a maximum of 100 results
Summary
Search API endpoint returns a maximum of 100 results
Steps to reproduce
- Setup a project containing hundreds of files containing a string to search for (e.g. the word "let" like in a swift project)
- search for that word (here: "let") in the project using the search api: https://gitlab.urltoinstallation.com/api/v4/projects/2/-/search?scope=blobs&search=let
The bug appears in version 10.6.4 (no chance to check the current one...)
What is the current bug behaviour?
Response header X-Total never greater than 100 Independent from x-per-page its not possible to retrieve more than 100 search result via the api.
What is the expected correct behaviour?
That the api returns the correct amount of search results in a paged manner.