任务分解 #169
经营异常(动产抵押登记信息)
0%
描述
一、调用接口文件(ApplyChattelMortgageRegistrationFormTest.php)
1、添加调用接口
$data = array("data"=>array("type"=>"applyChattelMortgageRegistrationForms",
"attributes"=>array("registrationNumber"=>'555555555555',
"registrationDate"=>'2009-05-05',
"registrationAuthority"=>'registrationAuthority',
"securedBond"=>123,
"content"=>'contentcontentcontent',
"attachments"=>array('1attachments155','1attachments255','1attachments355'),
"chattelMortgageRegistrationStatus"=>1,
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyChattelMortgageRegistrationForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);
2、编辑接口
$data = array("data"=>array("type"=>"applyChattelMortgageRegistrationForms",
"attributes"=>array("registrationNumber"=>'111111111',
"registrationDate"=>'2019-01-05',
"registrationAuthority"=>'11111registrationAuthority',
"securedBond"=>1123,
"content"=>'11111contentcontentcontent',
"attachments"=>array('11111attachments155','111111attachments255','11111attachments355'),
"chattelMortgageRegistrationStatus"=>2
)
)
);
$response = $client->request(
'PUT',
'applyChattelMortgageRegistrationForms/13',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);
3、调用单条
$response = $client->request('GET', 'applyChattelMortgageRegistrationForms/13',['haders'=>['Content-' => 'application/vnd.api+json']]);
4、调用多条
$response = $client->request('GET', 'applyChattelMortgageRegistrationForms',['haders'=>['Content-' => 'application/vnd.api+json']]);