密码文件接口

获取全部密码文件列表

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:

FieldTypeDescriptionSince
successboolean请求结果-
statusstring请求状态 200:请求成功 401:token无效 500:服务器错误-
msgstring错误信息-
objobject返回内容-
└─idstring主键-
└─namestring用户名-
└─passstring密码-
└─descrstringNo 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:

ParameterTypeDescriptionRequiredSince
idstring主键false-
namestring用户名false-
passstring密码false-
descrstringNo 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:

FieldTypeDescriptionSince
successboolean请求结果-
statusstring请求状态 200:请求成功 401:token无效 500:服务器错误-
msgstring错误信息-
objobject返回内容-

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:

ParameterTypeDescriptionRequiredSince
idstring密码文件idtrue-

Request-example:

curl   -i http://your_ip:port/api/password/del?id=45

Response-fields:

FieldTypeDescriptionSince
successboolean请求结果-
statusstring请求状态 200:请求成功 401:token无效 500:服务器错误-
msgstring错误信息-
objobject返回内容-

Response-example:

{
	"success":true,
	"status":"0w57tx",
	"msg":"wk91s0",
	"obj":{
		
	}
}