Azure / Azure/azure-cli

az apim export to allow for specified file name

Open
#32,209 1 comment 0 reactions 0 assignees View on GitHub
act-observability-squad API Management Auto-Assign customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
`apim api export`

**Is your feature request related to a problem? Please describe.**
some teams may need to export their api spec with a certain file name to be compatible with existing codegen/scripts

**Describe the solution you'd like**
add --file-name to save the eported file to a specified file name

**Describe alternatives you've considered**
the alternative it to manually rename the file which is automatically saved as `f"{api_id}_{exportType}{file_extension}"`

**Additional context**
This will enable teams to manually download swagger specs and import them into their codebase for use with codegen to instead run az apim export from their package.json and automatically codegen based on the filename already in their scripts.

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.