Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Update nuget.md
Browse files Browse the repository at this point in the history
Added note about v2 deprecation
  • Loading branch information
rhessinger committed Dec 10, 2020
1 parent 5901a2a commit c4b4ff8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ProGet/feeds/nuget.md
Expand Up @@ -76,6 +76,10 @@ ProGet implements the NuGet ODATA protocol. Because this is a third-party API, w
- [ODATA Overview](http://www.odata.org/getting-started/basic-tutorial/)
- [Fun With NuGet Web Api](http://chris.eldredge.io/blog/2013/02/25/fun-with-nuget-rest-api/)

::: {.attention .technical}
NuGet.org will deprecate V2 ODATA queries on March 9, 2020. Please see [KB#1800 for how this will affect ProGet](https://inedo.com/support/kb/1800).
:::

In addition, here are a few common queries you may find helpful:

**Listing all packages of a feed in JSON format**
Expand Down Expand Up @@ -106,6 +110,10 @@ https://«proget-server»/nuget/{feed-name}/Packages()?$filter=Id%20eq%20%27«pa

Both NuGet.org and the NuGet client tools support two different API protocols: ODATA (v2) and JSON-LD (v3). ProGet 5.3 and later supports both, and earlier versions support only ODATA (v2).

::: {.attention .technical}
NuGet.org will deprecate V2 ODATA queries on March 9, 2020. Please see [KB#1800 for how this will affect ProGet](https://inedo.com/support/kb/1800).
:::

When JSON-LD (v3) is enabled on a NuGet feed, the v3 API URL will be shown on the NuGet feed page, and both ODATA (v2) and JSON-LD (v3) may be used once enabled:

* `«proget-base»/nuget/«feed-name»` is the ODATA (v2) API
Expand Down

0 comments on commit c4b4ff8

Please sign in to comment.