From 933ee1fd43aa9bbf39ddf9ac567f2d4082928190 Mon Sep 17 00:00:00 2001 From: lostsquirrel Date: Tue, 25 May 2021 16:52:55 +0800 Subject: [PATCH 1/2] 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/spec/api.md b/docs/spec/api.md index 1f7a4a7b1..fe43475fa 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.| From 6d9a3aba0453f5237ae4aa93177e749148b14652 Mon Sep 17 00:00:00 2001 From: lostsquirrel Date: Tue, 25 May 2021 16:52:55 +0800 Subject: [PATCH 2/2] 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 1f7a4a7b1..fe43475fa 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 1dbe68239..373c7e328 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, },