From 6d9a3aba0453f5237ae4aa93177e749148b14652 Mon Sep 17 00:00:00 2001 From: lostsquirrel Date: Tue, 25 May 2021 16:52:55 +0800 Subject: [PATCH] fix the /v2/_catalog n parameter description If `n` is not present only 100 entries returned Signed-off-by: lisong --- docs/spec/api.md | 2 +- registry/api/v2/descriptors.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/spec/api.md b/docs/spec/api.md index 1f7a4a7b..fe43475f 100644 --- a/docs/spec/api.md +++ b/docs/spec/api.md @@ -5450,7 +5450,7 @@ The following parameters should be specified on the request: |Name|Kind|Description| |----|----|-----------| -|`n`|query|Limit the number of entries in each response. It not present, all entries will be returned.| +|`n`|query|Limit the number of entries in each response. It not present, 100 entries will be returned.| |`last`|query|Result set will include values lexically after last.| diff --git a/registry/api/v2/descriptors.go b/registry/api/v2/descriptors.go index 1dbe6823..373c7e32 100644 --- a/registry/api/v2/descriptors.go +++ b/registry/api/v2/descriptors.go @@ -99,7 +99,7 @@ var ( { Name: "n", Type: "integer", - Description: "Limit the number of entries in each response. It not present, all entries will be returned.", + Description: "Limit the number of entries in each response. It not present, 100 entries will be returned.", Format: "", Required: false, },