1
votes

I am attempting to get Feed/Package information from VSTS via the REST API. I have successfully used the REST API to access/update build definitions and variable groups. When I issue a request such as the following (replacing {...} with the actual values), all I get back is a 404 error 'Page not found'.

https://{accountName}.visualstudio.com/_apis/packaging/Feeds/{feedId}/packages?api-version=5.0-preview.1

I have tried other requests in the same area (Feed/Packages) and used other api-version values and they all give me the same response. I have had others confirm the commands I have tried are properly formatted. I am using Basic authentication with a PAT (the same one I use for the requests that do work).

Any insights would be appreciated.

2
I can also reproduce the issue with 404 response. And it seems you also reported the issue from developer community (developercommunity.visualstudio.com/content/problem/234664/…). So please wait for the response from our feature team there. - Marina Liu
Another person in our group reported the issue to MS about the same time as I posted this. I appreciate the response here. - melvers

2 Answers

1
votes

Using this endpoint URL instead (append .feeds after account):

https://{accountName}.feeds.visualstudio.com/_apis/packaging/Feeds/{feedId}/packages?api-version=5.0-preview.1
0
votes

Not sure why Microsoft official documentation dont mention this but the below api does the job -

https://<your organization name>.feeds.visualstudio.com/_apis/packaging/Feeds/<feedID>/Packages?api-version=5.1-preview.1