Nacos添加配置
openAPI示例
首先在nacos配置列表中添加nacos配置
登录
http://49.234.35.128:7681/nacos/v1/auth/users/login?username=nacos&password=nacos
{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJuYWNvcyIsImV4cCI6MTY0NDQxNDY3OX0.c-hc8MsUuB_mtFuWBLMbMFm8yIsx0U00MPDXFqOaENk",
"tokenTtl": 18000,
"globalAdmin": true,
"username": "nacos"
}
获取配置
http://49.234.35.128:7681/nacos/v1/cs/configs?dataId=test&group=111111111&accessToken=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJuYWNvcyIsImV4cCI6MTY0NDQxNDY3OX0.c-hc8MsUuB_mtFuWBLMbMFm8yIsx0U00MPDXFqOaENk