任务分解 #163
企业基本信息(行政许可)
0%
描述
一、调用接口文件(ApplyCompanyBranchFormTest.php)
1、添加调用接口
/*$data = array("data"=>array("type"=>"applyCompanyBranchForms",
"attributes"=>array("name"=>"企业名称namename111",
"category"=>1,
"registrationNumber"=>"",
"unifiedSocialCreditCode"=>"x11xxx123",
"organizationCode"=>"",
"principalName"=>"principalName11",
"identifyCardNumber"=>"1123456789632145",
"principalCategory"=>1,
"province"=>11,
"city"=>149,
"region"=>1258,
"detailedAddress"=>"11detailedAddress详细地址",
"companyId"=>2,
"uid"=>2,
"userIdentification"=>2
)
)
);
$response = $client->request(
'POST',
'applyCompanyBranchForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
2、编辑调用接口
$data = array("data"=>array("type"=>"applyCompanyBranchForms",
"attributes"=>array("name"=>"22企业名称namename111",
"category"=>1,
"registrationNumber"=>"",
"unifiedSocialCreditCode"=>"222x11xxx123",
"organizationCode"=>"",
"principalName"=>"222principalName11",
"identifyCardNumber"=>"2221123456789632145",
"principalCategory"=>1,
"province"=>11,
"city"=>149,
"region"=>1258,
"detailedAddress"=>"22211detailedAddress详细地址"
)
)
);
$response = $client->request(
'PUT',
'applyCompanyBranchForms/17',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);
3、调用单条
$response = $client->request('GET', 'applyCompanyBranchForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
4、调用多条
$response = $client->request('GET', 'applyCompanyBranchForms',['haders'=>['Content-' => 'application/vnd.api+json']]);