Azure / Azure/apiops

[FEATURE REQ] Allow only product extraction and not enforce that apis are also extracted in the same run

Open
#570 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
448
Forks
247
PR merge metrics
No merged PRs in 30d

Description

### Please describe the feature.

When I run a product extractor and have no apis listed. It will not write the apis association file. I see in the Trace that the apis are being listed but i believe the CLI is getting that list and perhaps trying to validate that the APIs exist or, that it tries to reconcile them with its own list of APIs. And when it doesn't find a match, it doesn't write any associations.

We have a workflow whereby we manage products separately. This pretty much means I cannot run the product extractor or, if I do, i have to also extract the APIS, and then cherry pick the src content and move it into a branch that I can then reconcile w/ the rest of the codebase.

Perhaps if we can't just trust the api-names in the product (and I don't know why you couldn't.. as they're saved in the platform) then you could list APIs and check the names for matches.

But I think you can just get the API names from the list products for API as you do and just trust the names: https://learn.microsoft.com/en-us/rest/api/apimanagement/product-api/list-by-product?view=rest-apimanagement-2022-08-01&tabs=HTTP

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.