NuGet - The Search Service
Implements the NuGet Search Service.
This service is needed for Visual Studio support.
Related: #20050 (closed)
This is step 6 of 7 in implementing the NuGet API MVC:
- #36496 (closed) - API Skeleton + The Service Index + authentication
- gitlab-workhorse#235 (closed) - Workhorse upload route
- #36499 (closed) - Push/Delete Service
- #36502 (closed) - Metadata extraction job, DB changes, and dependencies
- #36504 (closed) - Package Metadata Service
- #36505 (closed) - Search Service
- #36506 (closed) - Package Content Service
Technical notes
- Docs: https://docs.microsoft.com/en-us/nuget/api/search-query-service-resource#search-for-packages
- Search urls are like
query?q=&skip=0&take=26&prerelease=true
-
skip
: The number of results to skip, for pagination -
take
: The number of results to return, for pagination -
prerelease
: include or not prerelease versions. Prerelease version = version string includes-
(see https://docs.microsoft.com/en-us/nuget/concepts/package-versioning#version-basics)
-
- Response Example
{
"data": [
{
"@type": "Package",
"authors": "",
"id": "AppLogger_Bananas",
"summary": "",
"title": "AppLogger_Bananas",
"totalDownloads": 4,
"verified": true,
"version": "1.0.0",
"versions": [
{
"@id": "https://nuget.pkg.github.com/10io/AppLogger_Bananas/1.0.0.json",
"downloads": 4,
"version": "1.0.0"
}
]
}
],
"totalHits": 1
}
Edited by David Fernandez