项目

一般

简介

任务分解 #282

由 匿名用户 更新于 将近 8 年 之前

新闻动态(ApplyNewsFormTest.php) 专利信息(ApplyPatentInfoFormTest.php)
//$response // $response = $client->request('GET', 'applyNewsForms',['haders'=>['Content-' 'applyPatentInfoForms',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyNewsForms/1,2',['haders'=>['Content-' 'applyPatentInfoForms/1,2',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyNewsForms?filter[company]=1&sort=-id',['haders'=>['Content-' 'applyPatentInfoForms?filter[company]=1&sort=-id',['haders'=>['Content-' => 'application/vnd.api+json']]);
//add -- 开始
/*$data = array("data"=>array("type"=>"applyNewsForms", array("data"=>array("type"=>"applyPatentInfoForms",
"attributes"=>array("title"=>"titletitle", "attributes"=>array("name"=>"namenamenamenamenamenamenamenamenamenamenamename",
"date"=>'2020-02-02', "category"=>2,
"source"=>'https://www.baidu.com', "description"=>'descriptiondescriptiondescription',
"abstract"=>'abstract', "publicationDate"=>'2020-02-20',
"patentInfoStatus"=>-2,
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyNewsForms', 'applyPatentInfoForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
//add -- 结束
//edit -- 开始
$data /*$data = array("data"=>array("type"=>"applyNewsForms", array("data"=>array("type"=>"applyPatentInfoForms",
"attributes"=>array("title"=>"11titletitle", "attributes"=>array("name"=>"123456namename",
"date"=>'2120-02-02', "category"=>1,
"source"=>'http://www.baidu.com', "description"=>'descriptiondescriptiondescription',
"abstract"=>'111abstract', "publicationDate"=>'2020-02-20',
"patentInfoStatus"=>2,

)
)
);
$response = $client->request(
'PUT',
'applyNewsForms/1', 'applyPatentInfoForms/1',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
); );*/

返回