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.

    1. curl http://127.0.0.1:9080/hello/rejected -i
    2. HTTP/1.1 403 Forbidden
    3. {"error_msg":"rejected by workflow"}

    Example 2: if the request uri is /hello/v2/appid, the workflow plugin would execute the limit-count plugin

    1. curl http://127.0.0.1:0080/hello/v2/appid -i
    2. HTTP/1.1 200 OK
    1. 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.