Commit c7dc4dcd88a948d1207855df383a10a291c7ff91

Authored by “wangming”
1 parent af43359d

Align local API tooling with the application port.

Co-authored-by: Cursor <cursoragent@cursor.com>
.cursor/mcp.json
@@ -14,9 +14,9 @@ @@ -14,9 +14,9 @@
14 "--yes", 14 "--yes",
15 "@ivotoby/openapi-mcp-server", 15 "@ivotoby/openapi-mcp-server",
16 "--openapi-spec", 16 "--openapi-spec",
17 - "http://localhost:2011/swagger/Default/swagger.json", 17 + "http://localhost:19001/swagger/Default/swagger.json",
18 "--api-base-url", 18 "--api-base-url",
19 - "http://localhost:2011" 19 + "http://localhost:19001"
20 ] 20 ]
21 }, 21 },
22 "filesystem": { 22 "filesystem": {
.cursor/skills/api-interface-testing/SKILL.md
@@ -22,12 +22,12 @@ description: 按项目规范执行接口测试,包含获取 Token、使用 cur @@ -22,12 +22,12 @@ description: 按项目规范执行接口测试,包含获取 Token、使用 cur
22 - **地址**:`POST /api/oauth/Login` 22 - **地址**:`POST /api/oauth/Login`
23 - **Content-Type**:`application/x-www-form-urlencoded` 23 - **Content-Type**:`application/x-www-form-urlencoded`
24 - **参数**:`account=admin`,`password=e10adc3949ba59abbe56e057f20f883e` 24 - **参数**:`account=admin`,`password=e10adc3949ba59abbe56e057f20f883e`
25 -- **Base URL**:本地一般为 `http://localhost:2011`,以实际运行环境为准 25 +- **Base URL**:本地一般为 `http://localhost:19001`,以实际运行环境为准
26 26
27 **curl 示例:** 27 **curl 示例:**
28 28
29 ```bash 29 ```bash
30 -curl -X POST "http://localhost:2011/api/oauth/Login" \ 30 +curl -X POST "http://localhost:19001/api/oauth/Login" \
31 -H "Content-Type: application/x-www-form-urlencoded" \ 31 -H "Content-Type: application/x-www-form-urlencoded" \
32 -d "account=admin&password=e10adc3949ba59abbe56e057f20f883e" 32 -d "account=admin&password=e10adc3949ba59abbe56e057f20f883e"
33 ``` 33 ```
@@ -39,14 +39,14 @@ curl -X POST &quot;http://localhost:2011/api/oauth/Login&quot; \ @@ -39,14 +39,14 @@ curl -X POST &quot;http://localhost:2011/api/oauth/Login&quot; \
39 **GET(项目规范:GET 使用 data 传参,不用 params):** 39 **GET(项目规范:GET 使用 data 传参,不用 params):**
40 40
41 ```bash 41 ```bash
42 -curl -X GET "http://localhost:2011/api/xxx/YourAction?key=value" \ 42 +curl -X GET "http://localhost:19001/api/xxx/YourAction?key=value" \
43 -H "Authorization: <data.token 完整值>" 43 -H "Authorization: <data.token 完整值>"
44 ``` 44 ```
45 45
46 **POST(JSON body):** 46 **POST(JSON body):**
47 47
48 ```bash 48 ```bash
49 -curl -X POST "http://localhost:2011/api/xxx/YourAction" \ 49 +curl -X POST "http://localhost:19001/api/xxx/YourAction" \
50 -H "Authorization: <data.token 完整值>" \ 50 -H "Authorization: <data.token 完整值>" \
51 -H "Content-Type: application/json" \ 51 -H "Content-Type: application/json" \
52 -d '{"key":"value"}' 52 -d '{"key":"value"}'