Document OpenAPI de l'installation
Servi par chaque installation, sans jeton. Ses chemins viennent des routes réelles ; un test refuse toute route non décrite.
GET
/
v1
/
openapi.json
Document OpenAPI de l'installation
curl --request GET \
--url https://api.lekalao.com/v1/openapi.jsonconst options = {method: 'GET'};
fetch('https://api.lekalao.com/v1/openapi.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lekalao.com/v1/openapi.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://api.lekalao.com/v1/openapi.json"
response = requests.get(url)
print(response.text){}Réponse
200 - application/json
Le document OpenAPI 3.1.
The response is of type object.
⌘I
Document OpenAPI de l'installation
curl --request GET \
--url https://api.lekalao.com/v1/openapi.jsonconst options = {method: 'GET'};
fetch('https://api.lekalao.com/v1/openapi.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lekalao.com/v1/openapi.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://api.lekalao.com/v1/openapi.json"
response = requests.get(url)
print(response.text){}