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

Add HttpFileGeneratorPlugin snippets. Closes #98 #103

Merged
merged 1 commit into from
Jun 21, 2024
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Snippets: `devproxy-plugin-api-center-minimal-permissions` - ApiCenterMinimalPermissionsPlugin instance
- Snippets: `devproxy-plugin-api-center-minimal-permissions-config` - ApiCenterMinimalPermissionsPlugin config section
- Snippets: `devproxy-plugin-http-file-generator` - HttpFileGeneratorPlugin instance
- Snippets: `devproxy-plugin-http-file-generator-config` - HttpFileGeneratorPlugin config section

### Changed:

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ The following sections describe the features that the extension contributes to V
| `devproxy-plugin-graph-random-error-config` | GraphRandomErrorPlugin config section |
| `devproxy-plugin-graph-sdk-guidance` | GraphSdkGuidancePlugin instance |
| `devproxy-plugin-graph-select-guidance` | GraphSdkGuidancePlugin instance |
| `devproxy-plugin-http-file-generator` | HttpFileGeneratorPlugin instance |
| `devproxy-plugin-http-file-generator-config` | HttpFileGeneratorPlugin config section |
| `devproxy-plugin-latency` | LatencyPlugin instance |
| `devproxy-plugin-latency-config` | LatencyPlugin config section |
| `devproxy-plugin-graph-minimal-permissions-guidance` | MinimalPermissionsGuidancePlugin instance |
Expand Down
11 changes: 11 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ export const pluginSnippets: PluginSnippets = {
GraphSelectGuidancePlugin: {
instance: 'devproxy-plugin-graph-select-guidance',
},
HttpFileGeneratorPlugin: {
instance: 'devproxy-plugin-http-file-generator',
config: {
name: 'devproxy-plugin-http-file-generator-config',
required: false,
},
},
LatencyPlugin: {
instance: 'devproxy-plugin-latency',
config: {
Expand Down Expand Up @@ -211,6 +218,10 @@ export const pluginDocs: PluginDocs = {
name: 'Graph Select Guidance Plugin',
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/graphselectguidanceplugin',
},
HttpFileGeneratorPlugin: {
name: 'HTTP File Generator Plugin',
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/httpfilegeneratorplugin',
},
LatencyPlugin: {
name: 'Latency Plugin',
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/latencyplugin',
Expand Down
21 changes: 21 additions & 0 deletions src/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,27 @@
],
"description": "GraphSdkGuidancePlugin instance"
},
"HttpFileGeneratorPlugin": {
"prefix": "devproxy-plugin-http-file-generator",
"body": [
"{",
"\t\"name\": \"HttpFileGeneratorPlugin\",",
"\t\"enabled\": true,",
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\",",
"\t\"configSection\": \"latencyPlugin\"",
"}"
],
"description": "HttpFileGeneratorPlugin instance"
},
"HttpFileGeneratorPluginConfig": {
"prefix": "devproxy-plugin-http-file-generator-config",
"body": [
"\"httpFileGeneratorPlugin\": {",
"\t\"includeOptionsRequests\": false",
"}"
],
"description": "HttpFileGeneratorPlugin config section"
},
"LatencyPlugin": {
"prefix": "devproxy-plugin-latency",
"body": [
Expand Down