数据结构Keypair
public class Keypair extends BaseDomain {
private Long id;
private String name;
private String publicKey;
private Long userId;
}
接口定义
// 查询当前用户拥有的keypair
GET
/api/v1/keypairs
parameter:Page
response: Page<Keypair>
// 根据keypairming
GET
/api/v1/keypairs/{name}
parameter:name
response:Keypair
// 删除keypair
DELETE
/api/v1/keypairs
body: ids
// 导入keypair
POST
/api/v1/keypairs/import
body:Keypair
response:Keypair
// 创建keypair
POST
/api/v1/keypairs
body:Keypair
response:file
网友评论