Commit a1be3711 authored by Hank Greenburg's avatar Hank Greenburg Committed by Terri Chu

Fix search api docs

parent 5a53744e
...@@ -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