You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Sn0rt (via GitHub)" <gi...@apache.org> on 2023/08/16 13:09:57 UTC
[GitHub] [apisix] Sn0rt opened a new issue, #10034: feat: As a user, I want to try wasm plugin, so that pass a json config to plugin instead of a string
Sn0rt opened a new issue, #10034:
URL: https://github.com/apache/apisix/issues/10034
### Description
[for example](https://api7.ai/blog/how-apisix-supports-wasm)
```json
curl http://127.0.0.1:9180/apisix/admin/routes/1 \
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '{
"uri":"/*",
"upstream":{
"type":"roundrobin",
"timeout":{
"connect":1,
"read":1,
"send":1
},
"nodes":{
"httpbin.org:80":1
}
},
"plugins":{
"wasm_fault_injection":{
"conf":"{\"http_status\":200, \"body\":\"Hello WebAssembly!\n\"}"
}
},
"name":"wasm_fault_injection"
}'
```
the configure of the wasm_fault_injection plugin is a string. actually I want pass a json (table in lua).
This makes it easier to construct more complex configurations and transfer them to plugins
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] leslie-tsang closed issue #10034: feat: As a user, I want to try wasm plugin, so that pass a json config to plugin instead of a string
Posted by "leslie-tsang (via GitHub)" <gi...@apache.org>.
leslie-tsang closed issue #10034: feat: As a user, I want to try wasm plugin, so that pass a json config to plugin instead of a string
URL: https://github.com/apache/apisix/issues/10034
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org