refactor(api): simplify instance management endpoints

- Change delete endpoint to use request body instead of path parameter
- Modify endpoint now takes field as path parameter and instance name in body
- Update README to reflect API changes
- Remove unused description field from software info
- Fix error message in auth token lookup
This commit is contained in:
2026-02-28 11:55:52 +08:00
parent e3b3a3aa98
commit aa70e7c0f0
5 changed files with 32 additions and 14 deletions
+4 -2
View File
@@ -206,7 +206,7 @@ All API responses are returned in JSON format:
### 4. Delete frpc Instance
**Endpoint:** `/frpcAct/instanceMgr/{instanceName}/delete`
**Endpoint:** `/frpcAct/instanceMgr/delete`
**Method:** POST
**Content-Type:** application/json
**Auth Required:** Yes (token)
@@ -214,6 +214,7 @@ All API responses are returned in JSON format:
**Request:**
```json
{
"instanceName": "my_frpc",
"token": "your_token",
"timeStamp": 1704067200000
}
@@ -234,7 +235,7 @@ All API responses are returned in JSON format:
### 5. Modify frpc Instance
**Endpoint:** `/frpcAct/instanceMgr/{instanceName}/modify/{field}`
**Endpoint:** `/frpcAct/instanceMgr/modify/{field}`
**Method:** POST
**Content-Type:** application/json
**Auth Required:** Yes (token)
@@ -244,6 +245,7 @@ You can modify multiple fields at once:
**Request:**
```json
{
"instanceName": "my_frpc",
"token": "your_token",
"timeStamp": 1704067200000,
"name": "new_name",