tokers commented on code in PR #6949:
URL: https://github.com/apache/apisix/pull/6949#discussion_r861603580
##########
docs/en/latest/plugins/api-breaker.md:
##########
@@ -44,6 +44,8 @@ In an unhealthy state, when a request is forwarded to an
upstream service and th
| Name | Type | Requirement | Default | Valid
| Description
|
| ----------------------- | ------------- | ----------- | -------- |
--------------- |
--------------------------------------------------------------------------- |
| break_response_code | integer | required | | [200,
..., 599] | Return error code when unhealthy |
+| break_response_body | string | optional | |
| Return response body when unhealthy |
+| break_response_content_type | string | optional |
application/json | | Return body's content type when unhealthy |
Review Comment:
```suggestion
| break_response_content_type | string | optional |
application/json | | Return body's content type when unhealthy. This field
is in effective only if `break_response_body` is configured. |
```
##########
docs/zh/latest/plugins/api-breaker.md:
##########
@@ -44,6 +44,8 @@ title: api-breaker
| 名称 | 类型 | 必选项 | 默认值 | 有效值 | 描述
|
| ----------------------- | -------------- | ------ | ---------- |
--------------- | -------------------------------- |
| break_response_code | integer | 必须 | 无 | [200, ...,
599] | 不健康返回错误码 |
+| break_response_body | string | 可选 | 无 |
| 不健康返回报文 |
+| break_response_content_type | string | 可选 | application/json |
| 不健康返回 Content-Type |
Review Comment:
```suggestion
| break_response_content_type | string | 可选 | application/json |
| 不健康返回报文的内容类型,该字段仅在 `break_response_body` 被配置时生效 |
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]