Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Mar 19, 2024
1 parent d69063d commit bb433b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _docs/en/administration/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ count = 1

## HTTP API

You can obtain **partial** configurations of Pegasus server through the `/config` or `/configs` path of [HTTP API](http), the output is in _JSON_ format, including section, key, current configuration value, value type, tags (such as whether it can be dynamically modified), and a brief description.
You can obtain **partial** configurations of Pegasus server through the `/config` or `/configs` path of [HTTP API](/api/http), the output is in _JSON_ format, including section, key, current configuration value, value type, tags (such as whether it can be dynamically modified), and a brief description.

> Only configurations registered through method `DSN_DEFINE_xxx` can be obtained through the HTTP API.
Expand Down Expand Up @@ -92,7 +92,7 @@ By modifying the ini configuration file, the server needs to be restarted to tak

## HTTP API

**Partial** configuration of Pegasus server can be dynamically modified through the `/updateConfig` path of [HTTP API](http). Only configuration items with tag `flag_tag::FT_MUTABLE` can be dynamically modified.
**Partial** configuration of Pegasus server can be dynamically modified through the `/updateConfig` path of [HTTP API](/api/http). Only configuration items with tag `flag_tag::FT_MUTABLE` can be dynamically modified.

> The configuration modified through the HTTP API will not be persisted to the ini file, which means that the configuration item will be reset to the default value (or the value in the configuration file if specified).
Expand Down
4 changes: 2 additions & 2 deletions _docs/zh/administration/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ count = 1

## HTTP API

可以通过 [HTTP接口](http)`/config``/configs` 路径获取 Pegasus server 的 **部分** 配置,输出格式为 JSON 格式,包括 section,key,当前的配置值,值类型,tags(例如是否可以动态修改),以及简要说明。
可以通过 [HTTP接口](/api/http)`/config``/configs` 路径获取 Pegasus server 的 **部分** 配置,输出格式为 JSON 格式,包括 section,key,当前的配置值,值类型,tags(例如是否可以动态修改),以及简要说明。

> 只有通过 `DSN_DEFINE_xxx` 方式注册的配置,才可以通过 HTTP 接口获取。
Expand Down Expand Up @@ -92,7 +92,7 @@ $ curl 127.0.0.1:34601/configs

## HTTP API

可以通过 [HTTP接口](http)`/updateConfig` 路径动态修改 Pegasus server 的 **部分** 配置。只有 tag 包含 `flag_tag::FT_MUTABLE` 的配置项才可以动态修改。
可以通过 [HTTP接口](/api/http)`/updateConfig` 路径动态修改 Pegasus server 的 **部分** 配置。只有 tag 包含 `flag_tag::FT_MUTABLE` 的配置项才可以动态修改。

> 通过 HTTP 接口修改的配置不会被持久化到 ini 文件中,这意味着配置项会被重置为默认值(如果 ini 文件中已指定该配置项,则会重置为该配置值)。
Expand Down

0 comments on commit bb433b3

Please sign in to comment.