Skip to content

Commit 3531504

Browse files
[AppConfig] Migrate App Configuration swagger to TypeSpec (#28634)
* initial commit + cleanup * add docs + cleanup linter warnings * add auth + update swagger * convert models to resources * update routes with standard ops + more accuracy * regenerate openapi * add examples * flavor: azure * tsp format * add spec examples * fix accept header + spec consistency * fix nextLink + headers * use encodedName * fix accept header * fix enums * format * move accept header * remove comment * format * spelling * test examples * fix examples * wip * content type header * fix delete content type + getlabels op * clean up * update suppression * add consumes * fix error * rename alias * alias sync token header * tsp compile * fix errors * improvements * more improvements * fix datetimes * client generation fixes * more clean up * add scope + request id headers * add service op template * improve template * client request id header * property type fix * tsp compile * client.tsp * tsp update --------- Co-authored-by: Catalina Peralta <[email protected]>
1 parent da326fe commit 3531504

File tree

84 files changed

+4955
-1140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+4955
-1140
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import "./main.tsp";
2+
import "@azure-tools/typespec-client-generator-core";
3+
4+
using Azure.ClientGenerator.Core;
5+
using AzureAppConfiguration;
6+
7+
namespace SdkCustomizations;
8+
9+
@@clientName(Error, "AppConfigError", "python");
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"operationId": "CheckKeyValue",
3+
"title": "Requests the headers and status of the given resource.",
4+
"parameters": {
5+
"endpoint": "https://{exampleAppConfigurationName}.azconfig.io",
6+
"api-version": "2023-11-01",
7+
"key": "Message"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {
12+
"Content-Type": "application/vnd.microsoft.appconfig.kv+json",
13+
"ETag": "W/\"7XpB48ET4VAlB9068ft6fKMyA3m\"",
14+
"Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT",
15+
"Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763"
16+
}
17+
}
18+
}
19+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"operationId": "CheckKeyValue",
3+
"title": "Requests the headers and status of the given resource using the If-Match header.",
4+
"parameters": {
5+
"endpoint": "https://{exampleAppConfigurationName}.azconfig.io",
6+
"api-version": "2023-11-01",
7+
"key": "Message",
8+
"If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\""
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {
13+
"Content-Type": "application/vnd.microsoft.appconfig.kv+json",
14+
"ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV5\"",
15+
"Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT",
16+
"Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763"
17+
}
18+
}
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"operationId": "CheckKeyValue",
3+
"title": "Requests the headers and status of the given resource using the If-None-Match header.",
4+
"parameters": {
5+
"endpoint": "https://{exampleAppConfigurationName}.azconfig.io",
6+
"api-version": "2023-11-01",
7+
"key": "Message",
8+
"If-None-Match": "L10qpBghN693OaxydgTkLmrBbV5"
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {
13+
"Content-Type": "application/vnd.microsoft.appconfig.kv+json",
14+
"ETag": "W/\"7XpB48ET4VAlB9068ft6fKMyA3m\"",
15+
"Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT",
16+
"Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763"
17+
}
18+
}
19+
}
20+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"operationId": "CheckKeyValues",
3+
"title": "Requests the headers and status of the given resource.",
4+
"parameters": {
5+
"endpoint": "https://{exampleAppConfigurationName}.azconfig.io",
6+
"api-version": "2023-11-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"Content-Type": "application/vnd.microsoft.appconfig.kvset+json"
12+
}
13+
}
14+
}
15+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"operationId": "CheckKeyValues",
3+
"title": "Requests the headers and status of the given resource using the If-Match header.",
4+
"parameters": {
5+
"endpoint": "https://{exampleAppConfigurationName}.azconfig.io",
6+
"api-version": "2023-11-01",
7+
"If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\""
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {
12+
"Content-Type": "application/vnd.microsoft.appconfig.kvset+json",
13+
"ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV5\""
14+
}
15+
}
16+
}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"operationId": "CheckKeyValues",
3+
"title": "Requests the headers and status of the given resource using the If-None-Match header.",
4+
"parameters": {
5+
"endpoint": "https://{exampleAppConfigurationName}.azconfig.io",
6+
"api-version": "2023-11-01",
7+
"If-None-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\""
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {
12+
"Content-Type": "application/vnd.microsoft.appconfig.kvset+json",
13+
"ETag": "W/\"7XpB48ET4VAlB9068ft6fKMyA3m\""
14+
}
15+
}
16+
}
17+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"operationId": "CheckKeys",
3+
"title": "Check keys",
4+
"parameters": {
5+
"endpoint": "https://{exampleAppConfigurationName}.azconfig.io",
6+
"api-version": "2023-11-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"Content-Type": "application/vnd.microsoft.appconfig.keyset+json"
12+
}
13+
}
14+
}
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"operationId": "CheckLabels",
3+
"title": "Requests the headers and status of the given resource.",
4+
"parameters": {
5+
"endpoint": "https://{exampleAppConfigurationName}.azconfig.io",
6+
"api-version": "2023-11-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"Content-Type": "application/vnd.microsoft.appconfig.labelset+json"
12+
}
13+
}
14+
}
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"operationId": "CheckRevisions",
3+
"title": "Requests the headers and status of the given resource.",
4+
"parameters": {
5+
"endpoint": "https://{exampleAppConfigurationName}.azconfig.io",
6+
"api-version": "2023-11-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"Content-Type": "application/vnd.microsoft.appconfig.kvset+json"
12+
}
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)