(通讯录)收件地址接口
### 老接口,要改写内容才能用 暂不可用,要改customerId
### 下单之前,根据用户填写的地址,先调用
### 现在只用到一个get接口
get查询
http://47.102.105.195:8318/addressBooks/search/findByCustomerId?customerId=19
{
"creator" : null,
"updator" : null,
"createtime" : "2019-06-10 09:52:22",
"updatetime" : "2019-06-10 09:52:27",
"isDeleted" : null,
"customerId" : 19,
"recipientsAddress" : "钱王大街618号",
"recipients" : "京东总部",
"recipientsPhone" : 1888888881,
"id" : 1,
"_links" : {
"self" : {
"href" : "http://47.102.105.195:8318/addressBooks/1"
},
"addressBook" : {
"href" : "http://47.102.105.195:8318/addressBooks/1"
}
}
}
post 创建
http://47.102.105.195:8318/addressBooks 不带id 或者id不存在的模型
{
"creator" : null,
"updator" : null,
"createtime" : "2019-06-10 09:52:22",
"updatetime" : "2019-06-10 09:52:27",
"isDeleted" : null,
"customerId" : 19,
"recipientsAddress" : "钱王大街618号111",
"recipients" : "京东总部",
"recipientsPhone" : 1888888881
}
post 修改
带id的模型
{
"creator" : null,
"updator" : null,
"createtime" : "2019-06-10 09:52:22",
"updatetime" : "2019-06-10 09:52:27",
"isDeleted" : null,
"customerId" : 19,
"recipientsAddress" : "钱王大街618号111",
"recipients" : "京东总部",
"recipientsPhone" : 1888888881,
"id" : 1
}
delete删除
http://47.102.105.195:8318/addressBooks/1 1为id