NuGet v3 Query api take maximum value or 1000 #10353

Closed
opened 2025-11-02 09:05:08 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @m2nlight on GitHub (Feb 28, 2023).

Feature Description

NuGet UI Manager of VS2022 only get latest few version list from gitea api returns 10 items.

The api not support MAX_RESPONSE_ITEMS and DEFAULT_PAGING_NUM.

see: https://learn.microsoft.com/en-us/nuget/api/search-query-service-resource?source=recommendations

The skip parameter defaults to 0.
The take parameter should be an integer greater than zero. The server implementation may impose a maximum value.
Note
nuget.org limits the skip parameter to 3,000 and the take parameter to 1,000.

Screenshots

No response

Originally created by @m2nlight on GitHub (Feb 28, 2023). ### Feature Description NuGet UI Manager of VS2022 only get latest few version list from gitea api returns 10 items. The api not support MAX_RESPONSE_ITEMS and DEFAULT_PAGING_NUM. see: https://learn.microsoft.com/en-us/nuget/api/search-query-service-resource?source=recommendations > The skip parameter defaults to 0. > The take parameter should be an integer greater than zero. The server implementation may impose a maximum value. > Note > nuget.org limits the skip parameter to 3,000 and the take parameter to 1,000. ### Screenshots _No response_
GiteaMirror added the topic/packagestype/proposaltype/feature labels 2025-11-02 09:05:08 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Feb 28, 2023):

If there are no skip/task parameters present, the api uses DEFAULT_PAGING_NUM and MAX_RESPONSE_ITEMS.
What request does the NuGetUI Manager perform?

@KN4CK3R commented on GitHub (Feb 28, 2023): If there are no skip/task parameters present, the api uses `DEFAULT_PAGING_NUM` and `MAX_RESPONSE_ITEMS`. What request does the NuGetUI Manager perform?
Author
Owner

@m2nlight commented on GitHub (Mar 7, 2023):

This screenshot is capture vs2022 nuget manager request api

'''
https://192.168.xxx.xx/api/packages/shuzi/nuget/query?q=&skip=0&take=26&prerelease=true&supportedFramework=net6.0-windows7.0&supportedFramework=.NETFramework,Version=v4.6.1&supportedFramework=.NETFramework,Version=v4.0&supportedFramework=net6.0&semVerLevel=2.0.0
'''

25A33E4E-E764-46CD-A8C6-DD8535510D3F

Actual

  1. Query api always returns 10 items.
  2. Each item has 3 version.

Expect

  1. Take number or more items
  2. All versions
@m2nlight commented on GitHub (Mar 7, 2023): This screenshot is capture vs2022 nuget manager request api ''' https://192.168.xxx.xx/api/packages/shuzi/nuget/query?q=&skip=0&take=26&prerelease=true&supportedFramework=net6.0-windows7.0&supportedFramework=.NETFramework,Version=v4.6.1&supportedFramework=.NETFramework,Version=v4.0&supportedFramework=net6.0&semVerLevel=2.0.0 ''' ![25A33E4E-E764-46CD-A8C6-DD8535510D3F](https://user-images.githubusercontent.com/12708813/223294093-dd5ce81a-d3b1-4b7d-ab89-8db3f2c7ad77.png) Actual 1. Query api always returns 10 items. 2. Each item has 3 version. Expect 1. Take number or more items 2. All versions
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10353