URL: http://your_ip:port/api/password/getList
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取全部密码文件列表
Request-example:
curl -X ANY -i http://your_ip:port/api/password/getList
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
└─id | string | 主键 | - |
└─name | string | 用户名 | - |
└─pass | string | 密码 | - |
└─descr | string | No comments found. | - |
Response-example:
{
"success":true,
"status":"6gkraf",
"msg":"iupztk",
"obj":[
{
"id":"45",
"name":"鹤轩.白",
"pass":"v8yd4o",
"descr":"4f189x"
}
]
}
URL: http://your_ip:port/api/password/insertOrUpdate
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 添加或编辑密码文件
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
id | string | 主键 | false | - |
name | string | 用户名 | false | - |
pass | string | 密码 | false | - |
descr | string | No comments found. | false | - |
Request-example:
curl -i http://your_ip:port/api/password/insertOrUpdate?id=45&pathStr=1pyhg1&path=kpdy6v&updateTime=1641871596310&name=鹤轩.白&pass=dghmt0&descr=b3mjn2&createTime=1641871596310
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
Response-example:
{
"success":true,
"status":"9uc3y1",
"msg":"zq1pjq",
"obj":{
}
}
URL: http://your_ip:port/api/password/del
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 删除密码文件
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
id | string | 密码文件id | true | - |
Request-example:
curl -i http://your_ip:port/api/password/del?id=45
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
Response-example:
{
"success":true,
"status":"0w57tx",
"msg":"wk91s0",
"obj":{
}
}