Skip to content

Commit eac4343

Browse files
committed
Merge pull request github#744 from winniehell/patch-1
Make lazy search developers happy
2 parents 56ead20 + b303be3 commit eac4343

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/v3/search.md

Lines changed: 3 additions & 3 deletions
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)