Forum Discussion
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 );
- RonRatovsky5 years agoModerator
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
- 5 years agodjvakarjoshi1
- 2 years agoyusufalishaik
- 7 months agotp1666
Recent Discussions
- 19 hours agocelly
- 21 hours agoIchigo
- 22 hours agoBartMadeBotBad