File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010## [ 0.17.2] - Unreleased
1111
12+ ### Added:
13+
14+ - Snippets: ` devproxy-rewrite ` - Dev Proxy rewrite
15+ - Snippets: ` devproxy-plugin-rewrite-file ` - RewritePlugin rewrites file
16+ - Snippets: ` devproxy-plugin-rewrite-file-schema ` - RewritePlugin rewrites file schema
17+
1218### Changed:
1319
1420- Snippets: Updated schema urls to reflect the move to dotnet organisation in Github
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ Shown when the active document is a Dev Proxy configuration file
7575| ` devproxy-request ` | Dev Proxy request |
7676| ` devproxy-response ` | Dev Proxy response |
7777| ` devproxy-response-header ` | Dev Proxy response header |
78+ | ` devproxy-rewrite ` | Dev Proxy rewrite |
7879| ` devproxy-plugin-auth ` | AuthPlugin instance |
7980| ` devproxy-plugin-auth-config-apikey ` | AuthPlugin API Key config section |
8081| ` devproxy-plugin-auth-config-oauth2 ` | AuthPlugin OAuth2 config section |
@@ -136,6 +137,8 @@ Shown when the active document is a Dev Proxy configuration file
136137| ` devproxy-plugin-rate-limiting-file-schema ` | Dev Proxy rate limiting file schema |
137138| ` devproxy-plugin-retry-after ` | RetryAfterPlugin instance |
138139| ` devproxy-plugin-rewrite ` | RewritePlugin instance |
140+ | ` devproxy-plugin-rewrite-file ` | RewritePlugin rewrites file |
141+ | ` devproxy-plugin-rewrite-file-schema ` | RewritePlugin rewrites file schema |
139142| ` devproxy-plugin-rewrite-config ` | RewritePlugin config section |
140143| ` devproxy-plugin-url-discovery ` | UrlDiscoveryPlugin instance |
141144| ` devproxy-reporter-json ` | JsonReporter instance |
Original file line number Diff line number Diff line change 110110 ],
111111 "description" : " Dev Proxy response header"
112112 },
113+ "Rewrite" :{
114+ "prefix" : " devproxy-rewrite" ,
115+ "body" : [
116+ " {" ,
117+ " \t\" in\" : {" ,
118+ " \t\t\" url\" : \" $1\" " ,
119+ " \t }," ,
120+ " \t\" out\" : {" ,
121+ " \t\t\" url\" : \" $2\" " ,
122+ " \t }" ,
123+ " }"
124+ ],
125+ "description" : " Dev Proxy rewrite"
126+ },
113127 "AuthPlugin" : {
114128 "prefix" : " devproxy-plugin-auth" ,
115129 "body" : [
889903 ],
890904 "description" : " RewritePlugin instance"
891905 },
906+ "RewritePluginFile" :{
907+ "prefix" : " devproxy-plugin-rewrite-file" ,
908+ "body" : [
909+ " {" ,
910+ " \t\"\\ $schema\" : \" https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/rewriteplugin.rewritesfile.schema.json\" ," ,
911+ " \t\" rewrites\" : [" ,
912+ " \t\t $1" ,
913+ " \t ]" ,
914+ " }"
915+ ],
916+ "description" : " RewritePlugin rewrites file"
917+ },
918+ "RewritePluginFileSchema" :{
919+ "prefix" : " devproxy-plugin-rewrite-file-schema" ,
920+ "body" : [
921+ " \"\\ $schema\" : \" https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/rewriteplugin.rewritesfile.schema.json\" ,"
922+ ],
923+ "description" : " RewritePlugin rewrites file schema"
924+ },
892925 "RewritePluginConfig" :{
893926 "prefix" : " devproxy-plugin-rewrite-config" ,
894927 "body" : [
898931 " }"
899932 ],
900933 "description" : " RewritePlugin config section"
901- },
934+ },
902935 "UrlDiscoveryPlugin" : {
903936 "prefix" : " devproxy-plugin-url-discovery" ,
904937 "body" : [
You can’t perform that action at this time.
0 commit comments