How can I get the latest version of a package (which is actually a NuGet package version because I use NuGet package version number as an Octopus Package version number) if a release hasn’t been created yet? No need in C# example, it would be OK if you show me HTTP example only, I’ll re-write it in C# by myself.
Doing a GET to this URL would get you the latest version uploaded to the built-in repository of a package with the ID TestConfig (change that part in the URL to match your package)
Thank you for the feedback! I tried something like that, it looks like my problem is appeared as I use my own NuGet Package feed (not Built-in). Can I get a package version from it with Octopus API?
Please note that I have no problem in deployments by UI-interface, I mean it seems that integration is OK. I create a new NuGet Package, it saves in my feed - and I can see a new version in the Releases-Create New Release UI.
OK, I know the version of my NuGet Package so actually it’s not essential for me to get it from Octopus API. But I can’t understand why I can’t see it with URL http://localhost:81/api/feeds/feeds-myfeed/packages
The problem is that Octopus doesn’t cache the packages information from third party feeds, It only keeps track of the built-in feed. When using 3rd party feeds, Octopus queries it in real time at the moment of the deployment, reason why when you create a new release you can see the latest version on the UI.