Commit a9fecf61 authored by Terri Chu's avatar Terri Chu

Merge branch 'master' into 'master'

Fix search api docs

See merge request gitlab-org/gitlab!70962
parents c321a4da a1be3711
...@@ -1161,7 +1161,7 @@ Blobs searches are performed on both filenames and contents. Search results: ...@@ -1161,7 +1161,7 @@ Blobs searches are performed on both filenames and contents. Search results:
times in the content. times in the content.
```shell ```shell
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/6/search?scope=blobs&search=installation&ref=feature" curl --request GET --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/projects/6/search?scope=blobs&search=keyword%20filename:*.py
``` ```
Example response: Example response:
...@@ -1175,7 +1175,7 @@ Example response: ...@@ -1175,7 +1175,7 @@ Example response:
"path": "README.md", "path": "README.md",
"filename": "README.md", "filename": "README.md",
"id": null, "id": null,
"ref": "feature", "ref": "master",
"startline": 46, "startline": 46,
"project_id": 6 "project_id": 6
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment