Skip to content

Commit

Permalink
not supported search endpoint for cached packages #9
Browse files Browse the repository at this point in the history
Index should not return non-existing endpoints
  • Loading branch information
tomzo committed Feb 13, 2019
1 parent 5fdc2ce commit 78d6c71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Not implemented:
* Does not work with older paket versions
* Cache package metadata and invalidates when upstream changes are detected using [NuGet.CatalogReader](https://github.com/emgarten/NuGet.CatalogReader). *This will be ported from older liget < 1.0.0.*
* V2 search, filter and alike queries. *This is not planned.*
* search and autocomplete endpoints for cached packages. Basically, you need to query nuget.org to *search* for public packages.

# Usage

Expand Down
2 changes: 0 additions & 2 deletions src/LiGet/CarterModules/CacheIndexModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ await res.AsJson(new
Version = "3.0.0",
Resources =
ServiceWithAliases("PackagePublish", req.PackagePublish(prefix), "2.0.0") // api.nuget.org returns this too.
.Concat(ServiceWithAliases("SearchQueryService", req.PackageSearch(prefix), "", "3.0.0-beta", "3.0.0-rc")) // each version is an alias of others
.Concat(ServiceWithAliases("RegistrationsBaseUrl", req.RegistrationsBase(prefix), "", "3.0.0-rc", "3.0.0-beta"))
.Concat(ServiceWithAliases("PackageBaseAddress", req.PackageBase(prefix), "3.0.0"))
.Concat(ServiceWithAliases("SearchAutocompleteService", req.PackageAutocomplete(prefix), "", "3.0.0-rc", "3.0.0-beta"))
.ToList()
});
};
Expand Down

0 comments on commit 78d6c71

Please sign in to comment.