Skip to content

Commit 904188c

Browse files
petercolbergzeripath
authored andcommitted
Adapt documentation to renamed ENABLE_SWAGGER option (#5811)
Updates documentation to account for the renamed ENABLE_SWAGGER_ENDPOINT from #3572 (commit a74426d) Signed-off-by: Peter Colberg <[email protected]>
1 parent 0b51072 commit 904188c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/content/doc/advanced/api-usage.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ menu:
1717

1818
## Enabling/configuring API access
1919

20-
By default, `ENABLE_SWAGGER_ENDPOINT` is true, and
20+
By default, `ENABLE_SWAGGER` is true, and
2121
`MAX_RESPONSE_ITEMS` is set to 50. See [Config Cheat
2222
Sheet](https://docs.gitea.io/en-us/config-cheat-sheet/) for more
2323
information.

docs/content/doc/advanced/api-usage.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ menu:
1717

1818
## 开启/配置 API 访问
1919

20-
通常情况下, `ENABLE_SWAGGER_ENDPOINT` 默认开启并且参数 `MAX_RESPONSE_ITEMS` 默认为 50。您可以从 [Config Cheat
20+
通常情况下, `ENABLE_SWAGGER` 默认开启并且参数 `MAX_RESPONSE_ITEMS` 默认为 50。您可以从 [Config Cheat
2121
Sheet](https://docs.gitea.io/en-us/config-cheat-sheet/) 中获取更多配置相关信息。
2222

2323
## 通过 API 认证

docs/content/doc/advanced/config-cheat-sheet.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
323323

324324
## API (`api`)
325325

326-
- `ENABLE_SWAGGER_ENDPOINT`: **true**: Enables /api/swagger, /api/v1/swagger etc. endpoints. True or false; default is true.
326+
- `ENABLE_SWAGGER`: **true**: Enables /api/swagger, /api/v1/swagger etc. endpoints. True or false; default is true.
327327
- `MAX_RESPONSE_ITEMS`: **50**: Max number of items in a page.
328328

329329
## i18n (`i18n`)

0 commit comments

Comments
 (0)