summaryrefslogtreecommitdiff
path: root/doc/api/search.md
diff options
context:
space:
mode:
authorMario de la Ossa <mariodelaossa@gmail.com>2018-06-06 18:14:10 -0600
committerMario de la Ossa <mariodelaossa@gmail.com>2018-06-19 09:30:09 -0600
commit7357209f91ae4c0b504f47e36220bd04a0e2feca (patch)
tree60311ff038dc68f9afd6ac00bac65f389a443ca6 /doc/api/search.md
parent60b102be3d0d40cd36141cfcea0aecff2f115a06 (diff)
downloadgitlab-ce-7357209f91ae4c0b504f47e36220bd04a0e2feca.tar.gz
Implement filtering by filename on code searchce-5024-filename-search
Diffstat (limited to 'doc/api/search.md')
-rw-r--r--doc/api/search.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/search.md b/doc/api/search.md
index 107ddaffa6a..9716f682ace 100644
--- a/doc/api/search.md
+++ b/doc/api/search.md
@@ -776,6 +776,15 @@ Example response:
### Scope: blobs
+Filters are available for this scope:
+- filename
+- path
+- extension
+
+to use a filter simply include it in your query like so: `a query filename:some_name*`.
+
+You may use wildcards (`*`) to use glob matching.
+
```bash
curl --request GET --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects/6/search?scope=blobs&search=installation
```