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

apic-extension GA release #7677

Merged
merged 25 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f661669
build: add cicd pipeline (#7)
blackchoey Apr 9, 2024
fcb15b5
build: move update version logic to workflow (#8)
blackchoey Apr 9, 2024
274c40e
build: Run CI on multiple python version (#38)
blackchoey Apr 30, 2024
4053b6a
Merge branch 'Azure:main' into main
blackchoey May 6, 2024
793e9be
test: add test cases for commands (#40)
blackchoey May 10, 2024
dcd00c3
fix: error when register API with long description spec (#41)
blackchoey May 13, 2024
5ce1621
test: add test cases for optional parameters (#42)
blackchoey May 20, 2024
0c62319
feat!: remove file name param (#43)
blackchoey May 20, 2024
82ff581
fix: error not thrown when import spec with >3MB file (#44)
blackchoey May 21, 2024
7b62c18
feat!: remove state param for deployment commands (#46)
blackchoey May 21, 2024
6539ccd
fix: API title created by register command is not same with provided …
blackchoey May 22, 2024
e24d94a
feat!: redesign parameters to specify APIM instance for import-from-a…
blackchoey May 22, 2024
69ff9f8
test: clean up legacy test cases (#48)
blackchoey May 28, 2024
a5d7113
test: add test cases for command examples (#49)
blackchoey May 28, 2024
061bea3
docs: update help message per feedback (#50)
blackchoey May 28, 2024
3cc02dd
build: bump version to 1.0.0 and add changelog (#51)
blackchoey May 28, 2024
0473617
fix: some parameters should be required in import-specification and d…
blackchoey Jun 3, 2024
51dd403
feat!: rename parameter names to align with other Azure CLI command e…
blackchoey Jun 3, 2024
f16122a
test: enable test for import-from-apim (#54)
blackchoey Jun 14, 2024
1fa23a9
test: fix show service test case (#55)
blackchoey Jun 17, 2024
5472fec
docs: update changelog for 1.0.0 (#56)
juliajuju93 Jun 24, 2024
9487783
docs: update readme for apic-extension (#57)
juliajuju93 Jun 24, 2024
d26e680
fix: cannot run create command against existing resource (#58)
blackchoey Jun 25, 2024
6fcc37c
build: remove cicd pipeline (#59)
blackchoey Jun 25, 2024
0b05ab6
build: resolve review comments (#60)
blackchoey Jun 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: add test cases for optional parameters (#42)
  • Loading branch information
blackchoey authored May 20, 2024
commit 5ce162161a50efd9e1c7f8057ddf54d886686a92
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
interactions:
- request:
body: '{"properties": {"contacts": [{"email": "contact@example.com", "name": "test",
"url": "example.com"}], "customProperties": {"clitest000003": true}, "description":
"API description", "externalDocumentation": [{"title": "onboarding docs", "url":
"example.com"}], "kind": "rest", "license": {"url": "example.com"}, "summary":
"summary", "title": "test api"}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- apic api create
Connection:
- keep-alive
Content-Length:
- '354'
Content-Type:
- application/json
ParameterSetName:
- -g -s --api-id --title --type --contacts --custom-properties --description
--external-documentation --license --summary
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000004?api-version=2024-03-01
response:
body:
string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"test
api","summary":"summary","description":"API description","kind":"rest","license":{"url":"example.com"},"externalDocumentation":[{"title":"onboarding
docs","url":"example.com"}],"contacts":[{"name":"test","url":"example.com","email":"contact@example.com"}],"customProperties":{"clitest000003":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000004","name":"cli000004","systemData":{"createdAt":"2024-05-16T08:16:34.3016442Z","lastModifiedAt":"2024-05-16T08:16:34.3016324Z"}}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
cache-control:
- no-cache
content-length:
- '680'
content-type:
- application/json; charset=utf-8
date:
- Thu, 16 May 2024 08:16:33 GMT
etag:
- 2900e52e-0000-0100-0000-6645c0e20000
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-cache:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-msedge-ref:
- 'Ref A: ADF8917A140242AAA8FADA28D262A894 Ref B: MAA201060514009 Ref C: 2024-05-16T08:16:32Z'
x-powered-by:
- ASP.NET
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interactions:
cache-control:
- no-cache
date:
- Tue, 07 May 2024 11:32:34 GMT
- Fri, 17 May 2024 03:17:25 GMT
expires:
- '-1'
pragma:
Expand All @@ -41,10 +41,60 @@ interactions:
x-ms-ratelimit-remaining-subscription-deletes:
- '14999'
x-msedge-ref:
- 'Ref A: DB255A79DE584A6E96C87DCCEE911204 Ref B: MAA201060515039 Ref C: 2024-05-07T11:32:33Z'
- 'Ref A: E19B9F85D64543C8A6D0A898B3BF8D2B Ref B: MAA201060513021 Ref C: 2024-05-17T03:17:24Z'
x-powered-by:
- ASP.NET
status:
code: 204
message: No Content
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- apic api show
Connection:
- keep-alive
ParameterSetName:
- -g -s --api-id
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01
response:
body:
string: '{"code":"404"}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
cache-control:
- no-cache
content-length:
- '14'
content-type:
- application/json; charset=utf-8
date:
- Fri, 17 May 2024 03:17:27 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-cache:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-msedge-ref:
- 'Ref A: AF791DC5CCB94CA4BF9BA275AD679992 Ref B: MAA201060515017 Ref C: 2024-05-17T03:17:26Z'
x-powered-by:
- ASP.NET
status:
code: 404
message: Not Found
version: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- apic api list
Connection:
- keep-alive
ParameterSetName:
- -g -s --filter
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis?$filter=name%20eq%20%27clitest000003%27&api-version=2024-03-01
response:
body:
string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-05-16T08:16:31.1197126Z","lastModifiedAt":"2024-05-16T08:16:31.1197111Z"}}]}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
cache-control:
- no-cache
content-length:
- '484'
content-type:
- application/json; charset=utf-8
date:
- Thu, 16 May 2024 08:16:37 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-cache:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-msedge-ref:
- 'Ref A: 1E0CF70F2DD14DD9A3D655D15D3480CD Ref B: MAA201060516023 Ref C: 2024-05-16T08:16:36Z'
x-powered-by:
- ASP.NET
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- apic api update
Connection:
- keep-alive
ParameterSetName:
- -g -s --api-id --title --type --contacts --custom-properties --description
--external-documentation --license --summary
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01
response:
body:
string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-05-16T08:16:30.9912252Z","lastModifiedAt":"2024-05-16T08:16:30.9912236Z"}}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
cache-control:
- no-cache
content-length:
- '472'
content-type:
- application/json; charset=utf-8
date:
- Thu, 16 May 2024 08:16:36 GMT
etag:
- 2900c52e-0000-0100-0000-6645c0de0000
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-cache:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-msedge-ref:
- 'Ref A: 1F3926C9BD3A4C29AE0AFA8F9A518AE2 Ref B: MAA201060514021 Ref C: 2024-05-16T08:16:36Z'
x-powered-by:
- ASP.NET
status:
code: 200
message: OK
- request:
body: '{"properties": {"contacts": [{"email": "contact@example.com", "name": "test",
"url": "example.com"}], "customProperties": {"clitest000004": true}, "description":
"API description", "externalDocumentation": [{"title": "onboarding docs", "url":
"example.com"}], "kind": "rest", "license": {"url": "example.com"}, "summary":
"summary", "title": "test api 2"}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- apic api update
Connection:
- keep-alive
Content-Length:
- '356'
Content-Type:
- application/json
ParameterSetName:
- -g -s --api-id --title --type --contacts --custom-properties --description
--external-documentation --license --summary
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01
response:
body:
string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"test
api 2","summary":"summary","description":"API description","kind":"rest","license":{"url":"example.com"},"externalDocumentation":[{"title":"onboarding
docs","url":"example.com"}],"contacts":[{"name":"test","url":"example.com","email":"contact@example.com"}],"customProperties":{"clitest000004":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"lastModifiedAt":"2024-05-16T08:16:39.058988Z"}}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
cache-control:
- no-cache
content-length:
- '646'
content-type:
- application/json; charset=utf-8
date:
- Thu, 16 May 2024 08:16:38 GMT
etag:
- 2900002f-0000-0100-0000-6645c0e70000
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-cache:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-msedge-ref:
- 'Ref A: 17A1767E072F49859F7582F5B02ABD27 Ref B: MAA201060514021 Ref C: 2024-05-16T08:16:37Z'
x-powered-by:
- ASP.NET
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
interactions:
- request:
body: '{"identity": {"type": "SystemAssigned"}, "location": "westeurope", "tags":
{"test": "value"}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- apic service create
Connection:
- keep-alive
Content-Length:
- '93'
Content-Type:
- application/json
ParameterSetName:
- -g --name --location --tags --identity
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01
response:
body:
string: '{"type":"Microsoft.ApiCenter/services","location":"westeurope","identity":{"type":"SystemAssigned","principalId":"c9869f92-bc42-4001-84cf-0d11469f2508","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{"test":"value"},"systemData":{"createdAt":"2024-05-15T07:47:48.5289093Z","lastModifiedAt":"2024-05-15T07:47:48.528896Z"}}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
cache-control:
- no-cache
content-length:
- '524'
content-type:
- application/json; charset=utf-8
date:
- Wed, 15 May 2024 07:47:49 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-cache:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-msedge-ref:
- 'Ref A: 7F87441C541D4B62AA0D2BCE2176371C Ref B: MAA201060516023 Ref C: 2024-05-15T07:47:44Z'
x-powered-by:
- ASP.NET
status:
code: 201
message: Created
version: 1
Loading