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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.17.2] - Unreleased

### Added:

- Snippets: `devproxy-rewrite` - Dev Proxy rewrite
- Snippets: `devproxy-plugin-rewrite-file` - RewritePlugin rewrites file
- Snippets: `devproxy-plugin-rewrite-file-schema` - RewritePlugin rewrites file schema

### Changed:

- Snippets: Updated schema urls to reflect the move to dotnet organisation in Github
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Shown when the active document is a Dev Proxy configuration file
| `devproxy-request` | Dev Proxy request |
| `devproxy-response` | Dev Proxy response |
| `devproxy-response-header` | Dev Proxy response header |
| `devproxy-rewrite` | Dev Proxy rewrite |
| `devproxy-plugin-auth` | AuthPlugin instance |
| `devproxy-plugin-auth-config-apikey` | AuthPlugin API Key config section |
| `devproxy-plugin-auth-config-oauth2` | AuthPlugin OAuth2 config section |
Expand Down Expand Up @@ -136,6 +137,8 @@ Shown when the active document is a Dev Proxy configuration file
| `devproxy-plugin-rate-limiting-file-schema` | Dev Proxy rate limiting file schema |
| `devproxy-plugin-retry-after` | RetryAfterPlugin instance |
| `devproxy-plugin-rewrite` | RewritePlugin instance |
| `devproxy-plugin-rewrite-file` | RewritePlugin rewrites file |
| `devproxy-plugin-rewrite-file-schema` | RewritePlugin rewrites file schema |
| `devproxy-plugin-rewrite-config` | RewritePlugin config section |
| `devproxy-plugin-url-discovery` | UrlDiscoveryPlugin instance |
| `devproxy-reporter-json` | JsonReporter instance |
Expand Down
35 changes: 34 additions & 1 deletion src/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,20 @@
],
"description": "Dev Proxy response header"
},
"Rewrite":{
"prefix": "devproxy-rewrite",
"body": [
"{",
"\t\"in\": {",
"\t\t\"url\": \"$1\"",
"\t},",
"\t\"out\": {",
"\t\t\"url\": \"$2\"",
"\t}",
"}"
],
"description": "Dev Proxy rewrite"
},
"AuthPlugin": {
"prefix": "devproxy-plugin-auth",
"body": [
Expand Down Expand Up @@ -889,6 +903,25 @@
],
"description": "RewritePlugin instance"
},
"RewritePluginFile":{
"prefix": "devproxy-plugin-rewrite-file",
"body": [
"{",
"\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/rewriteplugin.rewritesfile.schema.json\",",
"\t\"rewrites\": [",
"\t\t$1",
"\t]",
"}"
],
"description": "RewritePlugin rewrites file"
},
"RewritePluginFileSchema":{
"prefix": "devproxy-plugin-rewrite-file-schema",
"body": [
"\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/rewriteplugin.rewritesfile.schema.json\","
],
"description": "RewritePlugin rewrites file schema"
},
"RewritePluginConfig":{
"prefix": "devproxy-plugin-rewrite-config",
"body": [
Expand All @@ -898,7 +931,7 @@
"}"
],
"description": "RewritePlugin config section"
},
},
"UrlDiscoveryPlugin": {
"prefix": "devproxy-plugin-url-discovery",
"body": [
Expand Down