mirror of https://github.com/docker/docs.git
updated search api docs to include pagination changes
Signed-off-by: Nathan Hsieh <hsieh.nathan@gmail.com>
This commit is contained in:
parent
b2ab733c99
commit
686585f33a
|
@ -514,7 +514,7 @@ Search the Index given a search term. It accepts
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
GET /v1/search?q=search_term HTTP/1.1
|
GET /v1/search?q=search_term&page=1&n=25 HTTP/1.1
|
||||||
Host: index.docker.io
|
Host: index.docker.io
|
||||||
Accept: application/json
|
Accept: application/json
|
||||||
|
|
||||||
|
@ -536,6 +536,8 @@ Search the Index given a search term. It accepts
|
||||||
Query Parameters:
|
Query Parameters:
|
||||||
|
|
||||||
- **q** – what you want to search for
|
- **q** – what you want to search for
|
||||||
|
- **n** - number of results you want returned per page (default: 25)
|
||||||
|
- **page** - page number of results
|
||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue