workflow
return
limit-count
note
In rules
, match case
in order according to the index of the , and execute actions
directly if case
match.
Here, the workflow
Plugin is enabled on the Route. If the request matches the case
in the rules
, the actions
will be executed.
curl http://127.0.0.1:9080/hello/rejected -i
HTTP/1.1 403 Forbidden
{"error_msg":"rejected by workflow"}
Example 2: if the request uri is /hello/v2/appid
, the workflow
plugin would execute the limit-count
plugin
curl http://127.0.0.1:0080/hello/v2/appid -i
HTTP/1.1 200 OK
curl http://127.0.0.1:0080/hello/fake -i
To disable the workflow
plugin, you can delete the corresponding JSON configuration from the Plugin configuration. APISIX will automatically reload and you do not have to restart for this to take effect.