You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* build: add cicd pipeline (#7)
* build: move update version logic to workflow (#8)
* build: Run CI on multiple python version (Azure#38)
* build: Run CI in Python 3.8-3.11
* build: remove pull request event for CI to avoid duplicate runs
* test: add test cases for commands (Azure#40)
* fix: error when register API with long description spec (Azure#41)
* test: add test cases for optional parameters (Azure#42)
* feat!: remove file name param (Azure#43)
* fix: error not thrown when import spec with >3MB file (Azure#44)
* feat!: remove state param for deployment commands (Azure#46)
* fix: API title created by register command is not same with provided spec (Azure#47)
* feat!: redesign parameters to specify APIM instance for import-from-apim command (Azure#45)
* test: clean up legacy test cases (Azure#48)
* test: add test cases for command examples (Azure#49)
* docs: update help message per feedback (Azure#50)
* build: bump version to 1.0.0 and add changelog (Azure#51)
* fix: some parameters should be required in import-specification and deployment command (Azure#53)
* feat!: rename parameter names to align with other Azure CLI command experience (Azure#52)
* test: enable test for import-from-apim (Azure#54)
* test: fix show service test case (Azure#55)
* docs: update changelog for 1.0.0 (Azure#56)
* Update HISTORY.rst - jukasper
updated changelog
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* Update HISTORY.rst
* docs: update readme for apic-extension (#57)
* fix: cannot run create command against existing resource (Azure#58)
* fix: cannot run create command against existing resource
* style: fix style
* build: remove cicd pipeline (Azure#59)
* build: resolve review comments (Azure#60)
---------
Co-authored-by: Julia Kasper <[email protected]>
Copy file name to clipboardExpand all lines: src/apic-extension/HISTORY.rst
+32-6Lines changed: 32 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,34 @@
3
3
Release History
4
4
===============
5
5
6
+
1.0.0
7
+
++++++++++++++++++
8
+
Potential Impact: The changes in this release, including the renaming of commands and parameters, may require changes to existing scripts and integrations. Please review the changes carefully and update your code accordingly.
9
+
10
+
**Updates:**
11
+
12
+
* Redesigned ``az apic service import-from-apim`` command for an easier specification of APIM instances.
13
+
* [BREAKING CHANGE] Renamed ``az apic service *`` commands to ``az apic *`` commands.
14
+
* [BREAKING CHANGE] Renamed ``--name/--service/--service-name/-s`` parameters in ``az apic *`` commands to ``--name/-n``.
15
+
* [BREAKING CHANGE] Renamed ``--service/--service-name/-s`` parameters in subcommands to ``--service-name/-n``.
16
+
* [BREAKING CHANGE] Renamed ``--metadata-schema/--metadata-schema-name/--name`` parameters in ``az apic metadata *`` commands to ``--metadata-name``.
17
+
* [BREAKING CHANGE] Renamed ``--environment-name`` parameter in ``az apic api register`` command to ``--environment-id``.
18
+
19
+
**Fixes:**
20
+
21
+
* Ensured API title created by ``register`` command matches the provided specification.
22
+
* Addressed the non-throwing of errors when importing specifications with files larger than 3MB.
23
+
* Resolved errors occurring when registering APIs with long descriptions in the specification.
24
+
* [BREAKING CHANGE] Made ``--definition-id``, ``--environment-id``, ``--server``, ``--title`` parameters mandatory in ``az apic api deployment create`` command.
25
+
* [BREAKING CHANGE] Made ``--format``, ``--specification``, ``--value`` parameters mandatory in ``az apic api definition import-specification`` command.
26
+
27
+
**Removals:**
28
+
29
+
* Removed ``--state`` parameter from ``az apic api deployment`` commands.
30
+
* [BREAKING CHANGE] Eliminated ``--file-name`` parameter for ``az apic api definition import-specification``, ``az apic metadata create``, and ``az apic metadata update`` commands. Introduced usage of the ``@filename`` syntax for reading parameter values from a file directly in Azure CLI.
31
+
6
32
1.0.0b5
7
-
+++++
33
+
++++++++++++++++++
8
34
* Add: Support yaml file for `az apic api register` command.
9
35
* Update: Command names, parameter names, and command descriptions for better understanding. Please leverage `-h` option or refer Azure CLI reference doc to see full list of commands and parameters.
10
36
* Update: Introduction to parameter constraints to ensure that valid values are provided.
@@ -15,17 +41,17 @@ Release History
15
41
* Remove: `head` commands in each command group are removed.
16
42
17
43
1.0.0b4
18
-
+++++
44
+
++++++++++++++++++
19
45
* Add: Support for Default Portal configuration and default hostname provisoning deprovisioning commands
20
46
21
47
1.0.0b3
22
-
+++++
48
+
++++++++++++++++++
23
49
* Add: Support for Import from apim command along with add examples for create service
24
50
25
51
1.0.0b2
26
-
++++++
52
+
++++++++++++++++++
27
53
* Remove: All workspace cli commands as it should not be exposed to customers just yet.
This extension can help create and manage APICenter Resources
3
+
*This extension can help create and manage API Center Resources.*
4
+
5
+
**Azure API Center** enables tracking all of your APIs in a centralized location for discovery, reuse, and governance. Use an API center to develop and maintain a structured and organized inventory of your organization's APIs - regardless of their type, lifecycle stage, or deployment location - along with related information such as version details, API definition files, and common metadata.
6
+
See [Azure API Center documentation](https://learn.microsoft.com/azure/api-center/overview) for more information.
4
7
5
8
### How to use
6
9
Install this extension using the below CLI command
@@ -9,274 +12,10 @@ az extension add --name apic-extension
az apic environment update -g api-center-test -s contosoeuap --name public --title "Public cloud"
208
-
```
209
-
210
-
LIST Environment
211
-
```
212
-
az apic environment list -g api-center-test -s contosoeuap
213
-
```
15
+
API Center CLI documentation: [https://learn.microsoft.com/cli/azure/api-center/](https://learn.microsoft.com/cli/azure/service-page/api%20center?view=azure-cli-latest)
214
16
215
-
SHOW Environment
216
-
```
217
-
az apic environment show -g api-center-test -s contosoeuap --name public
218
-
```
17
+
### Tutorials
219
18
220
-
DELETE Environment
221
-
```
222
-
az apic environment delete -g api-center-test -s contosoeuap --name public
az apic api register -g api-center-test -s contosoeuap --api-location "C:/Users/arpishah/examples/cli-examples/spec-examples/openai.json" --environment-name public
281
-
az apic api register -g api-center-test -s contosoeuap --api-location "C:/Users/arpishah/examples/cli-examples/spec-examples/openai.yml" --environment-name public
282
-
```
19
+
*[Use the Azure CLI to manage your API inventory](https://learn.microsoft.com/azure/api-center/manage-apis-azure-cli)
20
+
*[Register API, API version, and definition](https://learn.microsoft.com/azure/api-center/manage-apis-azure-cli#register-api-api-version-and-definition)
21
+
*[Import APIs to your API center from Azure API Management](https://learn.microsoft.com/azure/api-center/import-api-management-apis)
Copy file name to clipboardExpand all lines: src/apic-extension/azext_apic_extension/_help.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,23 +12,23 @@
12
12
13
13
helps['apic api register'] ="""
14
14
type: command
15
-
short-summary: Registers a new API with version, definition, and associated deployments using the specification file as the source of truth.
15
+
short-summary: Registers a new API with version, definition, and associated deployments using the specification file as the source of truth. For now we only support OpenAPI JSON/YAML format.
16
16
parameters:
17
17
- name: --api-location -l
18
18
type: string
19
19
short-summary: Location of spec file.
20
20
- name: --resource-group -g
21
21
type: string
22
22
short-summary: Resource group name.
23
-
- name: --service -s
23
+
- name: --service-name -n
24
24
type: string
25
25
short-summary: APICenter Catalog or Service name.
26
-
- name: --environment-name -e
26
+
- name: --environment-id
27
27
type: string
28
-
short-summary: Name of environment created before.
28
+
short-summary: Id of environment created before.
29
29
examples:
30
30
- name: Register api by providing spec file.
31
31
text: |
32
-
az apic api register -g api-center-test -s contosoeuap --api-location "examples/cli-examples/spec-examples/openai.json" --environment-name public
33
-
az apic api register -g api-center-test -s contosoeuap --api-location "examples/cli-examples/spec-examples/openai.yml" --environment-name public
32
+
az apic api register -g api-center-test -n contosoeuap --api-location "examples/cli-examples/spec-examples/openai.json" --environment-id public
33
+
az apic api register -g api-center-test -n contosoeuap --api-location "examples/cli-examples/spec-examples/openai.yml" --environment-id public
0 commit comments