diff --git a/.cursor/mcp.json b/.cursor/mcp.json index c68ae26..649b821 100644 --- a/.cursor/mcp.json +++ b/.cursor/mcp.json @@ -14,9 +14,9 @@ "--yes", "@ivotoby/openapi-mcp-server", "--openapi-spec", - "http://localhost:2011/swagger/Default/swagger.json", + "http://localhost:19001/swagger/Default/swagger.json", "--api-base-url", - "http://localhost:2011" + "http://localhost:19001" ] }, "filesystem": { diff --git a/.cursor/skills/api-interface-testing/SKILL.md b/.cursor/skills/api-interface-testing/SKILL.md index a727d2d..010f11b 100644 --- a/.cursor/skills/api-interface-testing/SKILL.md +++ b/.cursor/skills/api-interface-testing/SKILL.md @@ -22,12 +22,12 @@ description: 按项目规范执行接口测试,包含获取 Token、使用 cur - **地址**:`POST /api/oauth/Login` - **Content-Type**:`application/x-www-form-urlencoded` - **参数**:`account=admin`,`password=e10adc3949ba59abbe56e057f20f883e` -- **Base URL**:本地一般为 `http://localhost:2011`,以实际运行环境为准 +- **Base URL**:本地一般为 `http://localhost:19001`,以实际运行环境为准 **curl 示例:** ```bash -curl -X POST "http://localhost:2011/api/oauth/Login" \ +curl -X POST "http://localhost:19001/api/oauth/Login" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "account=admin&password=e10adc3949ba59abbe56e057f20f883e" ``` @@ -39,14 +39,14 @@ curl -X POST "http://localhost:2011/api/oauth/Login" \ **GET(项目规范:GET 使用 data 传参,不用 params):** ```bash -curl -X GET "http://localhost:2011/api/xxx/YourAction?key=value" \ +curl -X GET "http://localhost:19001/api/xxx/YourAction?key=value" \ -H "Authorization: " ``` **POST(JSON body):** ```bash -curl -X POST "http://localhost:2011/api/xxx/YourAction" \ +curl -X POST "http://localhost:19001/api/xxx/YourAction" \ -H "Authorization: " \ -H "Content-Type: application/json" \ -d '{"key":"value"}'