Renvoie l'identité d'un établissement
curl --request GET \
--url https://app.lecommis.fr/api/v1/establishments/{slug} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://app.lecommis.fr/api/v1/establishments/{slug}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://app.lecommis.fr/api/v1/establishments/{slug}', 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://app.lecommis.fr/api/v1/establishments/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.lecommis.fr/api/v1/establishments/{slug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.lecommis.fr/api/v1/establishments/{slug}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.lecommis.fr/api/v1/establishments/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"language": "fr",
"content_revision": 7,
"name": "Au Bistrot",
"description": "Bistrot de quartier, cuisine de saison.",
"business_type": "restaurant",
"public_category": "Restaurant français",
"category": "Restaurant français",
"website_url": "https://aubistrot.fr",
"menu_url": "https://aubistrot.fr/carte",
"contact": {
"email": "contact@aubistrot.fr",
"phone_number": "+33640709045"
},
"location": {
"address": "12 rue de Rivoli, 75001 Paris",
"latitude": 48.8566,
"longitude": 2.3522
},
"logo_url": "https://app.lecommis.fr/files/au-bistrot/logo.png"
}{
"error": "<string>",
"details": [
"<string>"
]
}{
"error": "<string>",
"details": [
"<string>"
]
}{
"error": "<string>",
"details": [
"<string>"
]
}Établissement
Renvoie l'identité d'un établissement
GET
/
api
/
v1
/
establishments
/
{slug}
Renvoie l'identité d'un établissement
curl --request GET \
--url https://app.lecommis.fr/api/v1/establishments/{slug} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://app.lecommis.fr/api/v1/establishments/{slug}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://app.lecommis.fr/api/v1/establishments/{slug}', 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://app.lecommis.fr/api/v1/establishments/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.lecommis.fr/api/v1/establishments/{slug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.lecommis.fr/api/v1/establishments/{slug}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.lecommis.fr/api/v1/establishments/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"language": "fr",
"content_revision": 7,
"name": "Au Bistrot",
"description": "Bistrot de quartier, cuisine de saison.",
"business_type": "restaurant",
"public_category": "Restaurant français",
"category": "Restaurant français",
"website_url": "https://aubistrot.fr",
"menu_url": "https://aubistrot.fr/carte",
"contact": {
"email": "contact@aubistrot.fr",
"phone_number": "+33640709045"
},
"location": {
"address": "12 rue de Rivoli, 75001 Paris",
"latitude": 48.8566,
"longitude": 2.3522
},
"logo_url": "https://app.lecommis.fr/files/au-bistrot/logo.png"
}{
"error": "<string>",
"details": [
"<string>"
]
}{
"error": "<string>",
"details": [
"<string>"
]
}{
"error": "<string>",
"details": [
"<string>"
]
}Authorizations
Clé API de l'établissement. Elle doit rester côté serveur.
Path Parameters
Slug de l'établissement
Response
Établissement trouvé
Identité de l'établissement. Les horaires sont exposés via /hours, le contenu des menus via /menus.
Available options:
fr Révision monotone du contenu public de l'établissement.
Example:
7
Example:
"Au Bistrot"
Example:
"Bistrot de quartier, cuisine de saison."
Type structurel de commerce.
Available options:
restaurant, wine_shop, bar, cafe, bakery, caterer, retail_store Example:
"restaurant"
Libellé libre affiché publiquement (ex. « Néo bistrot & Cave à vin »).
Example:
"Restaurant français"
Déprécié : alias de public_category, sera retiré dans une prochaine version.
Example:
"Restaurant français"
Example:
"https://aubistrot.fr"
Example:
"https://aubistrot.fr/carte"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Example:
"https://app.lecommis.fr/files/au-bistrot/logo.png"
Was this page helpful?