Skip to content

Commit 99896a3

Browse files
authored
Add ApiCenterProductionVersionPlugin. Closes #68 (#69)
Closes #68
1 parent 0ebc712 commit 99896a3

File tree

2 files changed

+43
-8
lines changed

2 files changed

+43
-8
lines changed

src/constants.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ export const pluginSnippets: PluginSnippets = {
88
required: true,
99
}
1010
},
11+
ApiCenterProductionVersionPlugin: {
12+
instance: 'devproxy-plugin-api-center-production-version',
13+
config: {
14+
name: 'devproxy-plugin-api-center-production-version-config',
15+
required: true,
16+
},
17+
},
1118
CachingGuidancePlugin: {
1219
instance: 'devproxy-plugin-caching-guidance',
1320
config: {
@@ -29,7 +36,7 @@ export const pluginSnippets: PluginSnippets = {
2936
required: false,
3037
},
3138
},
32-
EntraMockResponsePlugin:{
39+
EntraMockResponsePlugin: {
3340
instance: 'devproxy-plugin-entra-mock-response',
3441
config: {
3542
name: 'devproxy-plugin-entra-mock-response-config',
@@ -136,6 +143,10 @@ export const pluginDocs: PluginDocs = {
136143
name: 'API Center Onboarding Plugin',
137144
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/apicenteronboardingplugin',
138145
},
146+
ApiCenterProductionVersionPlugin: {
147+
name: 'API Center Production Version Plugin',
148+
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/apicenterproductionversionplugin',
149+
},
139150
CachingGuidancePlugin: {
140151
name: 'Caching Guidance Plugin',
141152
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/cachingguidanceplugin',
@@ -148,7 +159,7 @@ export const pluginDocs: PluginDocs = {
148159
name: 'Dev Tools Plugin',
149160
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/devtoolsplugin',
150161
},
151-
EntraMockResponsePlugin:{
162+
EntraMockResponsePlugin: {
152163
name: 'Entra Mock Response Plugin',
153164
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/entramockresponseplugin',
154165
},

src/snippets.json

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
"{",
100100
"\t\"name\": \"ApiCenterOnboardingPlugin\",",
101101
"\t\"enabled\": true,",
102-
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\"",
103-
"\t\"configSection\": \"apiCenterOnboardingPlugin\"",
102+
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\",",
103+
"\t\"configSection\": \"apiCenterOnboardingPlugin\",",
104104
"}"
105105
],
106106
"description": "ApiCenterOnboardingPlugin instance"
@@ -109,15 +109,39 @@
109109
"prefix": "devproxy-plugin-api-center-onboarding-config",
110110
"body": [
111111
"\"apiCenterOnboardingPlugin\": {",
112-
"\t\"subscriptionId\": \"cdae2297-7aa6-4195-bbb1-dcd89153cc72\"",
113-
"\t\"resourceGroupName\": \"resource-group-name\"",
114-
"\t\"serviceName\": \"apic-instance\"",
115-
"\t\"workspaceName\": \"default\"",
112+
"\t\"subscriptionId\": \"cdae2297-7aa6-4195-bbb1-dcd89153cc72\",",
113+
"\t\"resourceGroupName\": \"resource-group-name\",",
114+
"\t\"serviceName\": \"apic-instance\",",
115+
"\t\"workspaceName\": \"default\",",
116116
"\t\"serviceName\": true",
117117
"}"
118118
],
119119
"description": "ApiCenterOnboardingPlugin config section"
120120
},
121+
"ApiCenterProductionVersionPlugin": {
122+
"prefix": "devproxy-plugin-api-center-production-version",
123+
"body": [
124+
"{",
125+
"\t\"name\": \"ApiCenterProductionVersionPlugin\",",
126+
"\t\"enabled\": true,",
127+
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\",",
128+
"\t\"configSection\": \"apiCenterProductionVersionPlugin\"",
129+
"}"
130+
],
131+
"description": "ApiCenterProductionVersionPlugin instance"
132+
},
133+
"ApiCenterProductionVersionPluginConfig": {
134+
"prefix": "devproxy-plugin-api-center-production-version-config",
135+
"body": [
136+
"\"apiCenterProductionVersionPlugin\": {",
137+
"\t\"subscriptionId\": \"cdae2297-7aa6-4195-bbb1-dcd89153cc72\",",
138+
"\t\"resourceGroupName\": \"resource-group-name\",",
139+
"\t\"serviceName\": \"apic-instance\",",
140+
"\t\"workspaceName\": \"default\"",
141+
"}"
142+
],
143+
"description": "ApiCenterProductionVersionPlugin config section"
144+
},
121145
"CachingGuidancePlugin": {
122146
"prefix": "devproxy-plugin-caching-guidance",
123147
"body": [

0 commit comments

Comments
 (0)