Different List and Psuh endpoints forces you to have two sources

Topics: General
May 9, 2013 at 3:18 AM

I did some search here before posting and since I didn't find anything related I'm starting a new thread. Sorry if it already exists.

I was having a problem with pushing packages to my own NuGet server (http://stackoverflow.com/questions/16451183 in case anyone is interested) and figured out that I need to use the root Url (http://mynuget.com) of the NuGet website when pushing (so it would append /api/v2/package to it) instead of appending Nuget to the path like we do when listing/getting packages (http://mynuget.com/nuget).

Why is it like this? This forces me to keep two different sources in the config file - one for list and another one for pushing packages. Wouldn't the optimal way to keep the same endpoint for both operations OR to have nuget.exe append /nuget/ when listing packages so only one source is needed?

May 9, 2013 at 5:10 PM
Yes, I agree with you. It's an oversight on our part in the beginning. Feel free to open a feature request, and even better, consider sending a pull request. :)