Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
interactions:
- request:
body: '{"properties": {"contacts": [{"email": "[email protected]", "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":"[email protected]"}],"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": "[email protected]", "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":"[email protected]"}],"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