任务分解 #174
无形资产(证书信息)
0%
描述
一、调用接口文件(ApplyCertificateInfoFormTest.class.php)
1、添加接口
/*$data = array("data"=>array("type"=>"applyCertificateInfoForms",
"attributes"=>array("name"=>'hellohello1111',
"issueDate"=>'2009-05-05',
"expirationDate"=>'2021-09-06',
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyCertificateInfoForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
2、编辑接口
// $data = array("data"=>array("type"=>"applyCertificateInfoForms",
// "attributes"=>array("name"=>'hellohello',
// "issueDate"=>'2019-05-05',
// "expirationDate"=>'2031-09-06',
// )
// )
// );
// $response = $client->request(
// 'PUT',
// 'applyCertificateInfoForms/1',
// [
// 'haders'=>['Content-Type' => 'application/vnd.api+json'],
// 'json' => $data
// ]
// );
3、调用单条
$response = $client->request('GET', 'applyCertificateInfoForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
4、调用多条
$response = $client->request('GET', 'applyCertificateInfoForms',['haders'=>['Content-' => 'application/vnd.api+json']]);