查询仓库详情
此接口用于根据主键查询远程仓库的详细信息。
接口描述
通信协议:HTTP
URL:GET /api/v1/registry/:id
传参方式:path
请求参数
字段名 | 类型 | 是否必填 | 说明 |
---|---|---|---|
id | string | 是 | 仓库 ID |
响应参数
字段名 | 类型 | 说明 |
---|---|---|
id | string | 仓库 ID |
name | string | 仓库名称 |
address | string | 仓库地址 |
username | string | 连接仓库的账号 |
password | string | 连接仓库的密码 |
请求示例
curl --location --request GET 'http://localhost:3001/api/v1/registry/e6c846d4-1f92-467f-951f-197c2ce64d73'
响应示例
{
"status": 200,
"message": "success",
"fieldErrors": null,
"data": {
"id": "e6c846d4-1f92-467f-951f-197c2ce64d73",
"name": "test",
"address": "http://192.168.XX.XX:5000",
"username": "hello",
"password": "myPWD"
}
}
错误码
具体请参见 错误码说明。