Nuget Rest API - View Nuget Package Example
I am using TeamCity and Octopus for our deployment solutions. We also use TeamCity as our nuget server. I'm trying to implement the following http://docs.octopusdeploy.com/display/OD/Email+notifications but can't figure our the link back to the nuget server (http://nuget.org/packages/#{action.Package.NuGetPackageId}) to display the package. The directions say to replace "nuget.org" with the DNS name of our NuGet server. I've tried that and it does not seem to work but I'm sure I'm not constructing my url correctly. I've seen api examples where you call with an id by in my case I have the nugetpackageId which is a name. Can you give me an example of a url that I could call to achieve this with the nugetpackageid? I've tried something like this:
http://teamcity.xxxxxxx.com/httpAuth/app/nuget/v1/FeedService.svc/packages/My.Executable
Please sign in to leave a comment.
Hello Mark,
You can use the following request in TeamCity to get all packages by ID:
This request returns an xml. If you want TeamCity to return a page with packages (like https://www.nuget.org/packages/nunit), then please create a feature request in our issue tracker.