Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name for feedId doesn't work, and how to get feedId? #714

Open
dylanw-oss opened this issue Jul 16, 2024 · 1 comment
Open

Name for feedId doesn't work, and how to get feedId? #714

dylanw-oss opened this issue Jul 16, 2024 · 1 comment

Comments

@dylanw-oss
Copy link

dylanw-oss commented Jul 16, 2024

The document says that we can use Name for feedId in a rest call to get package version, but it does not work.

Name In Required Type Description
feedId path True string Name or ID of the feed.

I got this error:
{
"$id": "1",
"innerException": null,
"message": "The feed with ID 'CoreData' doesn't exist.",
"typeName": "Microsoft.VisualStudio.Services.Feed.WebApi.FeedIdNotFoundException, Microsoft.VisualStudio.Services.Feed.WebApi",
"typeKey": "FeedIdNotFoundException",
"errorCode": 0,
"eventId": 3000
}

BTW, how to get feedId? I struggled to find a solution to find feed's Id.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@dylanw-oss
Copy link
Author

dylanw-oss commented Jul 16, 2024

I figured it out that there're two types of feed, project level and organization level, to get a package version from an organization level feed, the URL is different, should remove project from the URL, like this:

GET https://pkgs.dev.azure.com/{organization}/_apis/packaging/feeds/{feedId}/nuget/packages/{packageName}/versions/{packageVersion}?api-version=7.1-preview.1

Can you update all Artifacts Package API documents to make it clear that {project} is optional and should be removed if feed is organization level.

Name In Required Type Description
project path   string Project ID or project name (remove it from URL if feed is organization level)
-- -- -- -- --

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant