Forum Discussion

coderafg's avatar
coderafg
New Contributor
5 years ago

How to Install "Repair order modul" in Swagger editor

3 Replies

  • coderafg's avatar
    coderafg
    New 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 );

    • RonRatovsky's avatar
      RonRatovsky
      Moderator

      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.