49 $yamlDocArray = $yaml->parse(file_get_contents(__DIR__ .
"/../documentation/openapi.yaml"));
50 }
catch (ParseException $exception) {
51 printf(
"Unable to parse the YAML string: %s", $exception->getMessage());
53 $apiVersion = $yamlDocArray[
"info"][
"version"];
55 foreach ($yamlDocArray[
"security"] as $secMethod) {
56 $security[] = key($secMethod);
58 return $response->withJson(array(
59 "version" => $apiVersion,
60 "security" => $security
Base controller for REST calls.
getVersion($request, $response, $args)
Controller for REST API version.