Forum Discussion
The question is unclear. Can you provide more details?
- coderafgNew Contributor
Here is the code, I can not connect it to Swagger database using PHP curl. any idea?
$user = urlencode("atsjD1ESjQAc1CgYssWf3n7Ulk5s4U06");
$pass = urlencode("MTGjsSVkT6R4dz1L");
$url1 = file_get_contents("https://".$user.":".$pass."@stage.apigw.cdkapps.eu/sample/sample/v1"); //replace "CLIENT-ID"
//."/repair-orders?licensePlate=".$licensePlate
$url = 'https://stage.apigw.cdkapps.eu/sample/sample/v1/repair-orders?licensePlate=$licensePlate';$header = get_headers($url);
print_r($header);
$status_code = $header[0];
print "<br> status: ".$status_code;
$result = json_decode($url);
print_r( $result );Not sure we'll be able to help. "Swagger database" is not something that exists, and generally speaking Swagger/OpenAPI is used to describe APIs and has nothing to do with databases.
Related Content
- 6 years ago
- 7 months ago
- 3 years ago
Recent Discussions
- 13 hours ago
- 4 days ago