Firstsawyou commented on a change in pull request #2265: URL: https://github.com/apache/apisix/pull/2265#discussion_r491801684
########## File path: doc/zh-cn/plugins/consumer-restriction.md ########## @@ -85,31 +94,131 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13 }' ``` -## 测试插件 +### 测试插件 jack1 访问: ```shell -$ curl -u jack2019:123456 http://127.0.0.1:9080/index.html +curl -u jack2019:123456 http://127.0.0.1:9080/index.html -i HTTP/1.1 200 OK ... ``` jack2 访问: ```shell -$ curl -u jack2020:123456 http://127.0.0.1:9080/index.html -i +curl -u jack2020:123456 http://127.0.0.1:9080/index.html -i HTTP/1.1 403 Forbidden ... -{"message":"You are not allowed"} +{"message":"The consumer_name is forbidden."} +``` + +## 如何启用 service_id Review comment: ok. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
