Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b303be3

Browse filesBrowse files
committed
Update search.md
quote URLs containing ampersands in curl examples
1 parent 56ead20 commit b303be3
Copy full SHA for b303be3

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎content/v3/search.md‎

Copy file name to clipboardExpand all lines: content/v3/search.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ media type in your Accept header. For example, via curl, the above query would
105105
look like this:
106106

107107
curl -H 'Accept: application/vnd.github.v3.text-match+json' \
108-
https://api.github.com/search/repositories?q=tetris+language:assembly&sort=stars&order=desc
108+
'https://api.github.com/search/repositories?q=tetris+language:assembly&sort=stars&order=desc'
109109

110110
This produces the same JSON payload as above, with an extra key called
111111
`text_matches`, an array of objects. These objects provide information such as
@@ -287,7 +287,7 @@ media type in your Accept header. For example, via curl, the above query would
287287
look like this:
288288

289289
curl -H 'Accept: application/vnd.github.v3.text-match+json' \
290-
https://api.github.com/search/issues?q=windows+label:bug+language:python+state:open&sort=created&order=asc
290+
'https://api.github.com/search/issues?q=windows+label:bug+language:python+state:open&sort=created&order=asc'
291291

292292
This produces the same JSON payload as above, with an extra key called
293293
`text_matches`, an array of objects. These objects provide information such as
@@ -405,7 +405,7 @@ Using curl, and the [example issue search](#issue-search-example) above, our API
405405
request would look like this:
406406

407407
curl -H 'Accept: application/vnd.github.v3.text-match+json' \
408-
https://api.github.com/search/issues?q=windows+label:bug+language:python+state:open&sort=created&order=asc
408+
'https://api.github.com/search/issues?q=windows+label:bug+language:python+state:open&sort=created&order=asc'
409409

410410
The response will include a `text_matches` array for each search result. In the
411411
JSON below, we have two objects in the `text_matches` array.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.