You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/07/29 02:50:34 UTC
[GitHub] [apisix] lunarwhite commented on a diff in pull request #7520: docs: refactor consumer-restriction.md
lunarwhite commented on code in PR #7520:
URL: https://github.com/apache/apisix/pull/7520#discussion_r932823348
##########
docs/en/latest/plugins/consumer-restriction.md:
##########
@@ -33,14 +32,14 @@ The `consumer-restriction` Plugin allows users to set access restrictions based
## Attributes
-| Name | Type | Required | Default | Valid values | Description |
-|--------------------|---------------|----------|---------------|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
-| type | string | False | consumer_name | ["consumer_name", "service_id", "route_id"] | Type of object to base the restriction on. |
-| whitelist | array[string] | True | | | List of objects to whitelist. Has a higher priority than `allowed_by_methods`. |
-| blacklist | array[string] | True | | | List of objects to blacklist. Has a higher priority than `whitelist`. |
-| rejected_code | integer | False | 403 | [200,...] | HTTP status code returned when the request is rejected. |
-| rejected_msg | string | False | | | Message returned when the request is rejected. |
-| allowed_by_methods | array[object] | False | | ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE", "PURGE"] | List of allowed HTTP methods for a Consumer. |
+| Name | Type | Required | Default | Valid values | Description |
+|--------------------|---------------|----------|---------------|---------------|-------------|
+| type | string | False | consumer_name | ["consumer_name", "service_id", "route_id"] | Type of object to base the restriction on. |
+| allowed_by_methods | array[object] | False | | ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE", "PURGE"] | List of allowed HTTP methods for a Consumer. |
Review Comment:
What do you mean by "A-Z"?
I adjusted the order as I considered the priority of these three attributes. Please take a careful look at the `Description` of the `allowed_by_methods`, `whitelist` and `blacklist`.
Let me know if there are any concerns or suggestions. Thanks 🙏
--
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