任务分解 #178
企业年报(股权变更信息)
0%
描述
一、调用接口文件(ApplyEquityChangeFormTest.php)
1、添加接口调用
/*$data = array("data"=>array("type"=>"applyEquityChangeForms",
"attributes"=>array("beforeChangeEquityRatio"=>"beforeChangeEquityRatio",
"afterhangeEquityRatio"=>"afterhangeEquityRatio",
"date"=>"2010-01-01",
"executor"=>"executor",
"equityAmount"=>"equityAmount",
"assignee"=>"assignee",
"court"=>"court",
"content"=>"contentcontent",
"shareholderId"=>1,
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyEquityChangeForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
2、编辑调用接口
$data = array("data"=>array("type"=>"applyEquityChangeForms",
"attributes"=>array("beforeChangeEquityRatio"=>"33beforeChangeEquityRatio",
"afterhangeEquityRatio"=>"33afterhangeEquityRatio",
"date"=>"2013-01-01",
"executor"=>"33executor",
"equityAmount"=>"e33quityAmount",
"assignee"=>"33assignee",
"court"=>"33court",
"content"=>"33contentcontent"
)
)
);
$response = $client->request(
'PUT',
'applyEquityChangeForms/33',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);
3、调用单条
$response = $client->request('GET', 'applyEquityChangeForms/8',['haders'=>['Content-' => 'application/vnd.api+json']]);
4、调用多条
$response = $client->request('GET', 'applyEquityChangeForms',['haders'=>['Content-' => 'application/vnd.api+json']]);