任务分解 #177
无形资产(著作权信息)
0%
描述
一 、调用接口文件(ApplyCopyrightInfoFormsTest.php)
1、调用添加接口
/*$data = array("data"=>array("type"=>"applyCopyrightInfoForms",
"attributes"=>array("name"=>'hellohello',
"registrationNumber"=>'967845123',
"registrationDate"=>'2059-05-05',
"registrationCategory"=>1,
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyCopyrightInfoForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
2、调用编辑端口
$data = array("data"=>array("type"=>"applyCopyrightInfoForms",
"attributes"=>array("name"=>'121worldworld',
"registrationNumber"=>'1211234567896321',
"registrationDate"=>'2029-01-15',
"registrationCategory"=>2,
)
)
);
$response = $client->request(
'PUT',
'applyCopyrightInfoForms/1',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);
3、调用单一接口
$response = $client->request('GET', 'applyCopyrightInfoForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
4、调用多条
$response = $client->request('GET', 'applyCopyrightInfoForms',['haders'=>['Content-' => 'application/vnd.api+json']]);