Skip to content

Commit 453943f

Browse files
committed
Add Crud API action snippet
Closes #18
1 parent d5e507a commit 453943f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The Dev Proxy extension makes it easy to create and update configuration files.
2424
| `devproxy-plugin-crud-api-config` | CrudApiPlugin config section |
2525
| `devproxy-plugin-crud-api-file` | CrudApiPlugin API file |
2626
| `devproxy-plugin-crud-api-file-schema` | CrudApiPlugin API file schema |
27+
| `devproxy-plugin-crud-api-action` | CrudApiPlugin action |
2728
| `devproxy-plugin-dev-tools` | DevToolsPlugin instance |
2829
| `devproxy-plugin-dev-tools-config` | DevToolsPlugin config section |
2930
| `devproxy-plugin-execution-summary` | ExecutionSummaryPlugin instance |

src/snippets.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,19 @@
140140
],
141141
"description": "CrudApiPlugin API file schema"
142142
},
143+
"CrudApiPluginAction": {
144+
"prefix": "devproxy-plugin-crud-api-action",
145+
"body": [
146+
"\r",
147+
"\t{",
148+
"\t\t\"action\": \"$1\",",
149+
"\t\t\"method\": \"$2\",",
150+
"\t\t\"query\": \"$3\",",
151+
"\t\t\"url\": \"$4\"",
152+
"\t}\r"
153+
],
154+
"description": "CrudApiPlugin action"
155+
},
143156
"DevToolsPlugin": {
144157
"prefix": "devproxy-plugin-dev-tools",
145158
"body": [

0 commit comments

Comments
 (0)