Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
Authentification
Gestion de l'authentification des utilisateurs
Fonction permettant à un utilisateur déjà inscrit de se connecter
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"username\": \"dicta\",
\"password\": \"|1:`J:%Ve\\\\\",
\"device_key\": \"cupiditate\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "dicta",
"password": "|1:`J:%Ve\\",
"device_key": "cupiditate"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction permettant à un utilisateur connecté de se déconnecter
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/logout" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/logout"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Carnet Médical
Gestion des carnets médicaux
Lister les carnets médicaux
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medical-books/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 7,
\"nbre_items\": 16,
\"filter_value\": \"tbtuioivb\",
\"responsible_doctor_id\": 19,
\"health_center_id\": 6,
\"patient_id\": 17,
\"trashed\": false,
\"ckd_stage\": \"iure\",
\"dialysis_center\": \"deleniti\",
\"current_doctor_name\": \"reprehenderit\",
\"ckd_diagnosis_date\": \"2025-06-02T16:53:01\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medical-books/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 7,
"nbre_items": 16,
"filter_value": "tbtuioivb",
"responsible_doctor_id": 19,
"health_center_id": 6,
"patient_id": 17,
"trashed": false,
"ckd_stage": "iure",
"dialysis_center": "deleniti",
"current_doctor_name": "reprehenderit",
"ckd_diagnosis_date": "2025-06-02T16:53:01"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter un carnet médical
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medical-books" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "patient_id=4"\
--form "responsible_doctor_id=15"\
--form "health_center_id=12"\
--form "blood_type=A-"\
--form "current_doctor_name=dolores"\
--form "current_doctor_phone=earum"\
--form "current_doctor_address=similique"\
--form "medical_history=molestiae"\
--form "current_treatments=ut"\
--form "known_kidney_diseases=mollitia"\
--form "autoimmune_or_infectious_diseases=ab"\
--form "allergies=sit"\
--form "ckd_stage=placeat"\
--form "ckd_diagnosis_date=2025-06-02T16:53:01"\
--form "ckd_etiology=temporibus"\
--form "recent_biological_tests=dignissimos"\
--form "dry_weight=85421.281664544"\
--form "dialysis_indicated="\
--form "dialysis_type=hemodialysis"\
--form "dialysis_center=mollitia"\
--form "dialysis_frequency=et"\
--form "dialysis_complications=harum"\
--form "renal_imaging_file=@/tmp/php9khIA0" const url = new URL(
"https://cms.ms-hotel.net/api/medical-books"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('patient_id', '4');
body.append('responsible_doctor_id', '15');
body.append('health_center_id', '12');
body.append('blood_type', 'A-');
body.append('current_doctor_name', 'dolores');
body.append('current_doctor_phone', 'earum');
body.append('current_doctor_address', 'similique');
body.append('medical_history', 'molestiae');
body.append('current_treatments', 'ut');
body.append('known_kidney_diseases', 'mollitia');
body.append('autoimmune_or_infectious_diseases', 'ab');
body.append('allergies', 'sit');
body.append('ckd_stage', 'placeat');
body.append('ckd_diagnosis_date', '2025-06-02T16:53:01');
body.append('ckd_etiology', 'temporibus');
body.append('recent_biological_tests', 'dignissimos');
body.append('dry_weight', '85421.281664544');
body.append('dialysis_indicated', '');
body.append('dialysis_type', 'hemodialysis');
body.append('dialysis_center', 'mollitia');
body.append('dialysis_frequency', 'et');
body.append('dialysis_complications', 'harum');
body.append('renal_imaging_file', document.querySelector('input[name="renal_imaging_file"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'un carnet médical
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/medical-books/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/medical-books/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/medical-books/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier un carnet médical
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/medical-books/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "patient_id=11"\
--form "responsible_doctor_id=16"\
--form "health_center_id=20"\
--form "blood_type=A-"\
--form "current_doctor_name=id"\
--form "current_doctor_phone=quibusdam"\
--form "current_doctor_address=sequi"\
--form "medical_history=libero"\
--form "current_treatments=rerum"\
--form "known_kidney_diseases=est"\
--form "autoimmune_or_infectious_diseases=illum"\
--form "allergies=qui"\
--form "ckd_stage=corrupti"\
--form "ckd_diagnosis_date=2025-06-02T16:53:01"\
--form "ckd_etiology=soluta"\
--form "recent_biological_tests=adipisci"\
--form "dry_weight=8001.158955474"\
--form "dialysis_indicated=1"\
--form "dialysis_center=qui"\
--form "dialysis_frequency=qui"\
--form "dialysis_complications=sint"\
--form "renal_imaging_file=@/tmp/phpskJ6NH" const url = new URL(
"https://cms.ms-hotel.net/api/medical-books/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('patient_id', '11');
body.append('responsible_doctor_id', '16');
body.append('health_center_id', '20');
body.append('blood_type', 'A-');
body.append('current_doctor_name', 'id');
body.append('current_doctor_phone', 'quibusdam');
body.append('current_doctor_address', 'sequi');
body.append('medical_history', 'libero');
body.append('current_treatments', 'rerum');
body.append('known_kidney_diseases', 'est');
body.append('autoimmune_or_infectious_diseases', 'illum');
body.append('allergies', 'qui');
body.append('ckd_stage', 'corrupti');
body.append('ckd_diagnosis_date', '2025-06-02T16:53:01');
body.append('ckd_etiology', 'soluta');
body.append('recent_biological_tests', 'adipisci');
body.append('dry_weight', '8001.158955474');
body.append('dialysis_indicated', '1');
body.append('dialysis_center', 'qui');
body.append('dialysis_frequency', 'qui');
body.append('dialysis_complications', 'sint');
body.append('renal_imaging_file', document.querySelector('input[name="renal_imaging_file"]').files[0]);
fetch(url, {
method: "PUT",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs medical_books
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medical-books/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
14
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medical-books/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
14
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs medical_books
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medical-books/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medical-books/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
18
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Centres de santé
Gestion des centres de santé
Lister les centres de santé
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/health-centers/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 56,
\"nbre_items\": 8,
\"filter_value\": \"xpl\",
\"responsible_id\": 17,
\"trashed\": true
}"
const url = new URL(
"https://cms.ms-hotel.net/api/health-centers/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 56,
"nbre_items": 8,
"filter_value": "xpl",
"responsible_id": 17,
"trashed": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter un centre de santé
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/health-centers" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"responsible_id\": 5,
\"name\": \"xwmauzctnoictv\",
\"description\": \"Et illum quia laboriosam sed harum quia.\",
\"address\": \"yferrkgqxrbhjpivun\",
\"city\": \"etgnbeleryskbqdbc\",
\"country\": \"vwfizixcgrxcvazh\",
\"phone\": \"tgzkkdffnjadpx\",
\"logo\": \"frsiehp\",
\"email\": \"dhickle@example.org\",
\"website\": \"xkjtlukhz\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/health-centers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"responsible_id": 5,
"name": "xwmauzctnoictv",
"description": "Et illum quia laboriosam sed harum quia.",
"address": "yferrkgqxrbhjpivun",
"city": "etgnbeleryskbqdbc",
"country": "vwfizixcgrxcvazh",
"phone": "tgzkkdffnjadpx",
"logo": "frsiehp",
"email": "dhickle@example.org",
"website": "xkjtlukhz"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les informations d'un centre de santé
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/health-centers/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/health-centers/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/health-centers/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier les informations d'un centre de santé
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/health-centers/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"responsible_id\": 8,
\"name\": \"eghdelmaasqiqzhknatpeqa\",
\"description\": \"Harum totam provident doloribus sit iste qui.\",
\"address\": \"gpwzncedgaykones\",
\"city\": \"mgknouqiymk\",
\"country\": \"oncdgsucdymejrvt\",
\"phone\": \"opledvnli\",
\"logo\": \"ivtbupniwbhhkh\",
\"email\": \"ohoeger@example.net\",
\"website\": \"hiw\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/health-centers/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"responsible_id": 8,
"name": "eghdelmaasqiqzhknatpeqa",
"description": "Harum totam provident doloribus sit iste qui.",
"address": "gpwzncedgaykones",
"city": "mgknouqiymk",
"country": "oncdgsucdymejrvt",
"phone": "opledvnli",
"logo": "ivtbupniwbhhkh",
"email": "ohoeger@example.net",
"website": "hiw"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs health_centers
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/health-centers/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
12
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/health-centers/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
12
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs health_centers
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/health-centers/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
20
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/health-centers/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
20
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Chat
Gestion des discussions du chat
Lister les discussions (privées et en groupe)
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/chat/rooms/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 20,
\"nbre_items\": 10,
\"filter_value\": \"ikouwyrgfwmn\",
\"is_group\": false
}"
const url = new URL(
"https://cms.ms-hotel.net/api/chat/rooms/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 20,
"nbre_items": 10,
"filter_value": "ikouwyrgfwmn",
"is_group": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Démarrer une discussion
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/chat/rooms" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"pogaw\",
\"photo\": \"kiewzwuuuatijurylzypu\",
\"participants\": [
14
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/chat/rooms"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "pogaw",
"photo": "kiewzwuuuatijurylzypu",
"participants": [
14
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'une discussion
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/chat/rooms/8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/chat/rooms/8"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/chat/rooms/8 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une discussion
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/chat/rooms/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"hlbsqjwxrucd\",
\"photo\": \"xqsrrriewsxdaatstg\",
\"participants\": [
8
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/chat/rooms/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "hlbsqjwxrucd",
"photo": "xqsrrriewsxdaatstg",
"participants": [
8
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gestion des messages du chat
Lister les messages
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/chat/messages/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 10,
\"nbre_items\": 5,
\"filter_value\": \"zreptqrmicrui\",
\"message_room_id\": 1,
\"user_id\": 7
}"
const url = new URL(
"https://cms.ms-hotel.net/api/chat/messages/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 10,
"nbre_items": 5,
"filter_value": "zreptqrmicrui",
"message_room_id": 1,
"user_id": 7
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter un message
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/chat/messages" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"message_room_id\": 7,
\"body\": \"ab\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/chat/messages"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"message_room_id": 7,
"body": "ab"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un message
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/chat/messages/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/chat/messages/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/chat/messages/6 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier un message
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/chat/messages/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": \"in\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/chat/messages/12"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"body": "in"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Checkups patients
Gestion des checkups patients
Lister les checkups patients
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/check-ups/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 69,
\"nbre_items\": 14,
\"filter_value\": \"hkhlasfaqg\",
\"patient_id\": 17,
\"date\": \"2025-06-02\",
\"alert_status\": \"warning\",
\"trashed\": false
}"
const url = new URL(
"https://cms.ms-hotel.net/api/check-ups/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 69,
"nbre_items": 14,
"filter_value": "hkhlasfaqg",
"patient_id": 17,
"date": "2025-06-02",
"alert_status": "warning",
"trashed": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter un checkup patient
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/check-ups" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 8,
\"dialysis_session_id\": 2,
\"weight_kg\": \"nihil\",
\"alert_status\": \"warning\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/check-ups"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 8,
"dialysis_session_id": 2,
"weight_kg": "nihil",
"alert_status": "warning"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'un checkup patient
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/check-ups/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/check-ups/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/check-ups/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier un checkup patient
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/check-ups/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 4,
\"dialysis_session_id\": 2,
\"weight_kg\": \"perferendis\",
\"alert_status\": \"critical\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/check-ups/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 4,
"dialysis_session_id": 2,
"weight_kg": "perferendis",
"alert_status": "critical"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs patient_check_ups
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/check-ups/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
20
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/check-ups/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
20
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs patient_check_ups
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/check-ups/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
5
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/check-ups/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
5
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Départements
Gestion des départements
Lister les départements
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/departments/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 37,
\"nbre_items\": 3,
\"filter_value\": \"ljic\",
\"responsible_id\": 14,
\"health_center_id\": 2,
\"trashed\": true
}"
const url = new URL(
"https://cms.ms-hotel.net/api/departments/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 37,
"nbre_items": 3,
"filter_value": "ljic",
"responsible_id": 14,
"health_center_id": 2,
"trashed": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter un département
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/departments" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"responsible_id\": 2,
\"health_center_id\": 11,
\"name\": \"pwslwrqeqilqgkxmamoynksrv\",
\"description\": \"Non quia voluptatem atque fuga excepturi ut quisquam ut.\",
\"phone\": \"ghpjxlp\",
\"email\": \"tromp.roscoe@example.net\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/departments"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"responsible_id": 2,
"health_center_id": 11,
"name": "pwslwrqeqilqgkxmamoynksrv",
"description": "Non quia voluptatem atque fuga excepturi ut quisquam ut.",
"phone": "ghpjxlp",
"email": "tromp.roscoe@example.net"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'un département
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/departments/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/departments/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/departments/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier un département
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/departments/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"responsible_id\": 17,
\"health_center_id\": 4,
\"name\": \"cqofn\",
\"description\": \"Voluptatem necessitatibus eveniet est.\",
\"phone\": \"epqmt\",
\"email\": \"romaguera.gus@example.org\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/departments/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"responsible_id": 17,
"health_center_id": 4,
"name": "cqofn",
"description": "Voluptatem necessitatibus eveniet est.",
"phone": "epqmt",
"email": "romaguera.gus@example.org"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs medical_books
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/departments/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
4
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/departments/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
4
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs medical_books
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/departments/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
13
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/departments/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
13
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Endpoints
Lister les rendez-vous
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/rendez-vous/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 23,
\"nbre_items\": 7,
\"filter_value\": \"kjjtfpgblnnyhf\",
\"patient_id\": 12,
\"doctor_id\": 20,
\"date\": \"2025-06-02\",
\"status\": \"rejected\",
\"trashed\": false
}"
const url = new URL(
"https://cms.ms-hotel.net/api/rendez-vous/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 23,
"nbre_items": 7,
"filter_value": "kjjtfpgblnnyhf",
"patient_id": 12,
"doctor_id": 20,
"date": "2025-06-02",
"status": "rejected",
"trashed": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter un rendez-vous
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/rendez-vous" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 17,
\"doctor_id\": 7,
\"date\": \"2025-06-02\",
\"hour\": \"16:53\",
\"description\": \"In et laboriosam sunt.\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/rendez-vous"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 17,
"doctor_id": 7,
"date": "2025-06-02",
"hour": "16:53",
"description": "In et laboriosam sunt."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'un rendez-vous
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/rendez-vous/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/rendez-vous/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/rendez-vous/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier un rendez-vous
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/rendez-vous/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 9,
\"doctor_id\": 11,
\"date\": \"2025-06-02\",
\"hour\": \"16:53\",
\"description\": \"Vitae dolor est maxime dolorem dolores at consequuntur voluptate.\",
\"status\": \"pending\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/rendez-vous/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 9,
"doctor_id": 11,
"date": "2025-06-02",
"hour": "16:53",
"description": "Vitae dolor est maxime dolorem dolores at consequuntur voluptate.",
"status": "pending"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs rendez_vous
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/rendez-vous/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/rendez-vous/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
16
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs rendez_vous
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/rendez-vous/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/rendez-vous/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Forum
Catégories Gestion des catégories de forum
Lister les categories de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/categories/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 22,
\"nbre_items\": 14,
\"filter_value\": \"zepdjvoqcpjcoqp\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/categories/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 22,
"nbre_items": 14,
"filter_value": "zepdjvoqcpjcoqp"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une catégorie de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/categories" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"opaogmzjgsb\",
\"description\": \"Est doloremque omnis aut.\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/categories"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "opaogmzjgsb",
"description": "Est doloremque omnis aut."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'une catégorie de forum
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/forum/categories/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/forum/categories/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/forum/categories/17 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une catégorie de forum
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/forum/categories/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"yyqwvkpazcxehcdzdjf\",
\"description\": \"Distinctio perferendis alias voluptas consequatur nesciunt voluptatum optio illo.\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/categories/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "yyqwvkpazcxehcdzdjf",
"description": "Distinctio perferendis alias voluptas consequatur nesciunt voluptatum optio illo."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs categories de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/categories/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
3
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/categories/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs categories de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/categories/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/categories/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
15
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Questions Gestion des questions de forum
Lister les questions de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/questions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 89,
\"nbre_items\": 1,
\"filter_value\": \"zvwjdr\",
\"forum_category_id\": 19,
\"user_id\": 16
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/questions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 89,
"nbre_items": 1,
"filter_value": "zvwjdr",
"forum_category_id": 19,
"user_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une question de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/questions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"forum_category_id\": 2,
\"title\": \"niev\",
\"body\": \"sapiente\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/questions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"forum_category_id": 2,
"title": "niev",
"body": "sapiente"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'une question de forum
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/forum/questions/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/forum/questions/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/forum/questions/10 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une question de forum
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/forum/questions/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"forum_category_id\": 1,
\"title\": \"ngresjclbc\",
\"body\": \"neque\",
\"is_resolved\": false
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/questions/14"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"forum_category_id": 1,
"title": "ngresjclbc",
"body": "neque",
"is_resolved": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs questions de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/questions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
20
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/questions/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
20
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs questions de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/questions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/questions/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
15
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Réponses Gestion des réponses aux questions de forum
Lister les réponses de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/answers/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 60,
\"nbre_items\": 5,
\"filter_value\": \"qkzzikugmlnqlsy\",
\"forum_category_id\": 8,
\"forum_question_id\": 2,
\"user_id\": 17
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/answers/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 60,
"nbre_items": 5,
"filter_value": "qkzzikugmlnqlsy",
"forum_category_id": 8,
"forum_question_id": 2,
"user_id": 17
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une réponse à une question de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/answers" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"forum_question_id\": 8,
\"body\": \"id\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/answers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"forum_question_id": 8,
"body": "id"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'une réponse à une question de forum
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/forum/answers/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/forum/answers/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/forum/answers/17 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une réponse à une question de forum
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/forum/answers/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"forum_question_id\": 4,
\"body\": \"in\",
\"is_accepted\": false
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/answers/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"forum_question_id": 4,
"body": "in",
"is_accepted": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs questions de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/answers/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
10
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/answers/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
10
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs réponses aux questions de forum
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/forum/answers/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
17
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/forum/answers/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
17
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Médicaments
Gestion des médicaments
Lister les médicaments
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medications/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 52,
\"nbre_items\": 4,
\"filter_value\": \"cwoksbnkwzwlvygccq\",
\"name\": \"qztypctpvcjuf\",
\"trashed\": true
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medications/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 52,
"nbre_items": 4,
"filter_value": "cwoksbnkwzwlvygccq",
"name": "qztypctpvcjuf",
"trashed": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajout d'un médicament
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medications" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"gumryhwmxwkxqhyuwwid\",
\"description\": \"Aut quod sit eligendi ut consequuntur fugiat.\",
\"photo\": \"et\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medications"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "gumryhwmxwkxqhyuwwid",
"description": "Aut quod sit eligendi ut consequuntur fugiat.",
"photo": "et"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un médicament
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/medications/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/medications/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/medications/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier un médicament
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/medications/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"urvdyhmy\",
\"description\": \"Rerum omnis provident beatae impedit.\",
\"photo\": \"natus\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medications/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "urvdyhmy",
"description": "Rerum omnis provident beatae impedit.",
"photo": "natus"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs médicaments
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medications/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medications/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
11
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs médicaments
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medications/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medications/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
1
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Nourritures
Gestion des nourritures
Lister les nourritures
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/foods/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 26,
\"nbre_items\": 15,
\"filter_value\": \"vhqmngjalftncypgflyx\",
\"trashed\": false,
\"name\": \"bpbwnbexsdaxrsjl\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/foods/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 26,
"nbre_items": 15,
"filter_value": "vhqmngjalftncypgflyx",
"trashed": false,
"name": "bpbwnbexsdaxrsjl"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une nourriture
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/foods" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"hsyxpbkbxyxgxrqyug\",
\"description\": \"Maiores impedit doloribus sit iusto eligendi.\",
\"potassium_mg\": \"balqaxcjykyj\",
\"sodium_mg\": \"rqdvyvreyoduahsfecbop\",
\"phosphorus_mg\": \"hsckbtey\",
\"photo\": \"zxqjwovguav\",
\"food_alternatives\": [
{
\"alternative_id\": 4,
\"reason\": \"seemncel\"
}
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/foods"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "hsyxpbkbxyxgxrqyug",
"description": "Maiores impedit doloribus sit iusto eligendi.",
"potassium_mg": "balqaxcjykyj",
"sodium_mg": "rqdvyvreyoduahsfecbop",
"phosphorus_mg": "hsckbtey",
"photo": "zxqjwovguav",
"food_alternatives": [
{
"alternative_id": 4,
"reason": "seemncel"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher une nourriture
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/foods/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/foods/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/foods/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une nourriture
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/foods/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"seogx\",
\"description\": \"Maxime et in nihil qui sit aut.\",
\"potassium_mg\": \"oznkcu\",
\"sodium_mg\": \"upvoovukyekhtulmyexg\",
\"phosphorus_mg\": \"mvbqchjqnxqellhcuer\",
\"photo\": \"gwqzqxkrdxvhsabyrubcq\",
\"food_alternatives\": [
{
\"alternative_id\": 14,
\"reason\": \"tzwnxqioxhkcupsfwmrhk\"
}
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/foods/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "seogx",
"description": "Maxime et in nihil qui sit aut.",
"potassium_mg": "oznkcu",
"sodium_mg": "upvoovukyekhtulmyexg",
"phosphorus_mg": "mvbqchjqnxqellhcuer",
"photo": "gwqzqxkrdxvhsabyrubcq",
"food_alternatives": [
{
"alternative_id": 14,
"reason": "tzwnxqioxhkcupsfwmrhk"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs nourritures
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/foods/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
9
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/foods/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
9
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs nourritures
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/foods/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/foods/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
15
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Page Médicale
Gestion de pages d'un carnet médical
Lister les pagse de carnets médicaux
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medical-pages/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 35,
\"nbre_items\": 20,
\"filter_value\": \"cqhcfioxvrodcubymzs\",
\"doctor_id\": 4,
\"medical_book_id\": 10,
\"department_id\": 2,
\"consultation_date\": \"2025-06-02\",
\"trashed\": true
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medical-pages/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 35,
"nbre_items": 20,
"filter_value": "cqhcfioxvrodcubymzs",
"doctor_id": 4,
"medical_book_id": 10,
"department_id": 2,
"consultation_date": "2025-06-02",
"trashed": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une page de carnet médical
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medical-pages" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"medical_book_id\": 6,
\"department_id\": 20,
\"doctor_id\": 13,
\"consultation_date\": \"2025-06-02\",
\"reason_for_visit\": \"animi\",
\"clinical_notes\": \"sit\",
\"diagnosis\": \"qui\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medical-pages"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"medical_book_id": 6,
"department_id": 20,
"doctor_id": 13,
"consultation_date": "2025-06-02",
"reason_for_visit": "animi",
"clinical_notes": "sit",
"diagnosis": "qui"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'une page de carnet médical
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/medical-pages/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/medical-pages/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/medical-pages/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une page de carnet médical
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/medical-pages/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"medical_book_id\": 8,
\"department_id\": 15,
\"doctor_id\": 11,
\"consultation_date\": \"2025-06-02\",
\"reason_for_visit\": \"sunt\",
\"clinical_notes\": \"at\",
\"diagnosis\": \"quo\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medical-pages/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"medical_book_id": 8,
"department_id": 15,
"doctor_id": 11,
"consultation_date": "2025-06-02",
"reason_for_visit": "sunt",
"clinical_notes": "at",
"diagnosis": "quo"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs medical_pages
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medical-pages/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medical-pages/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
19
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs medical_pages
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medical-pages/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
8
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medical-pages/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
8
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Permissions
Gestion des permissions
Afficher la liste des permissions
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/permissions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 59,
\"nbre_items\": 3,
\"filter_value\": \"in\",
\"ressource\": \"natus\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/permissions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 59,
"nbre_items": 3,
"filter_value": "in",
"ressource": "natus"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une liste de permission
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/permissions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"permissions\": [
{
\"name\": \"sunt\",
\"description\": \"Debitis dolorem et est voluptatem sapiente.\",
\"ressource\": \"eaque\"
}
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/permissions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"permissions": [
{
"name": "sunt",
"description": "Debitis dolorem et est voluptatem sapiente.",
"ressource": "eaque"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher une permission spécifique
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/permissions/quibusdam" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/permissions/quibusdam"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/permissions/quibusdam could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre a jour une permission spécifique
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/permissions/quaerat" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"minima\",
\"permissions\": [
{
\"description\": \"Distinctio pariatur unde sit voluptas quia.\",
\"ressource\": \"et\"
}
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/permissions/quaerat"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "minima",
"permissions": [
{
"description": "Distinctio pariatur unde sit voluptas quia.",
"ressource": "et"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Prescriptions
Gestion des prescriptions
Lister les prescriptions
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/prescriptions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 65,
\"nbre_items\": 10,
\"filter_value\": \"czolmgqybgbhljbgacsedwhf\",
\"patient_id\": 17,
\"start_date\": \"2025-06-02\",
\"end_date\": \"2025-06-02\",
\"trashed\": true
}"
const url = new URL(
"https://cms.ms-hotel.net/api/prescriptions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 65,
"nbre_items": 10,
"filter_value": "czolmgqybgbhljbgacsedwhf",
"patient_id": 17,
"start_date": "2025-06-02",
"end_date": "2025-06-02",
"trashed": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une prescription
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/prescriptions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 16,
\"start_date\": \"2025-06-02\",
\"end_date\": \"2118-01-27\",
\"frequency\": \"illum\",
\"dosage\": \"dolorem\",
\"description\": \"Ea soluta repellat ad quo placeat necessitatibus veniam.\",
\"medications\": [
{
\"medication_id\": 9,
\"dosage\": 49,
\"frequency\": \"optio\",
\"description\": \"Suscipit quo autem et ut ratione.\"
}
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/prescriptions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 16,
"start_date": "2025-06-02",
"end_date": "2118-01-27",
"frequency": "illum",
"dosage": "dolorem",
"description": "Ea soluta repellat ad quo placeat necessitatibus veniam.",
"medications": [
{
"medication_id": 9,
"dosage": 49,
"frequency": "optio",
"description": "Suscipit quo autem et ut ratione."
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'une prescription
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/prescriptions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/prescriptions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/prescriptions/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une prescription
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/prescriptions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 1,
\"start_date\": \"2025-06-02\",
\"end_date\": \"2122-10-20\",
\"frequency\": \"delectus\",
\"dosage\": \"necessitatibus\",
\"description\": \"Possimus et autem minima libero consequatur atque.\",
\"medical_page_id\": 19,
\"medications\": [
{
\"medication_id\": 20,
\"dosage\": 30,
\"frequency\": \"ad\",
\"description\": \"Quibusdam odio modi nisi dolore et repudiandae.\"
}
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/prescriptions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 1,
"start_date": "2025-06-02",
"end_date": "2122-10-20",
"frequency": "delectus",
"dosage": "necessitatibus",
"description": "Possimus et autem minima libero consequatur atque.",
"medical_page_id": 19,
"medications": [
{
"medication_id": 20,
"dosage": 30,
"frequency": "ad",
"description": "Quibusdam odio modi nisi dolore et repudiandae."
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs prescriptions
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/prescriptions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
14
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/prescriptions/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
14
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs prescriptions
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/prescriptions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/prescriptions/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Prises de Médicaments
Gestion des prises de médicaments
Lister les prises de médicaments
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medications-intakes/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 32,
\"nbre_items\": 15,
\"filter_value\": \"mxixyt\",
\"trashed\": false,
\"prescription_id\": 16,
\"medication_id\": 8,
\"start_date\": \"2025-06-02\",
\"end_date\": \"2082-11-27\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medications-intakes/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 32,
"nbre_items": 15,
"filter_value": "mxixyt",
"trashed": false,
"prescription_id": 16,
"medication_id": 8,
"start_date": "2025-06-02",
"end_date": "2082-11-27"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une prise de médicament
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medications-intakes" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"prescription_id\": 16,
\"medication_id\": 5,
\"is_taken\": true,
\"date_time\": \"2025-06-02 16:53\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medications-intakes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"prescription_id": 16,
"medication_id": 5,
"is_taken": true,
"date_time": "2025-06-02 16:53"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher une prise de médicament
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/medications-intakes/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/medications-intakes/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/medications-intakes/11 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une prise de médicament
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/medications-intakes/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"prescription_id\": 17,
\"medication_id\": 11,
\"is_taken\": true,
\"date_time\": \"2025-06-02 16:53\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medications-intakes/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"prescription_id": 17,
"medication_id": 11,
"is_taken": true,
"date_time": "2025-06-02 16:53"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs prises de médicaments
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medications-intakes/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
3
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medications-intakes/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs prises de médicaments
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/medications-intakes/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/medications-intakes/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
7
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Recettes
Gestion des recettes
Lister les recettes
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/recipes/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 58,
\"nbre_items\": 3,
\"filter_value\": \"ojwzyduhukbrmugzlf\",
\"is_low_potassium\": false,
\"is_low_sodium\": false
}"
const url = new URL(
"https://cms.ms-hotel.net/api/recipes/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 58,
"nbre_items": 3,
"filter_value": "ojwzyduhukbrmugzlf",
"is_low_potassium": false,
"is_low_sodium": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une recette
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/recipes" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"est\",
\"description\": \"Eum et aut ipsum ex.\",
\"instructions\": \"maxime\",
\"preparation_time\": 17,
\"servings\": 12,
\"is_low_potassium\": false,
\"is_low_sodium\": true,
\"calories\": 16,
\"sodium_mg\": 9,
\"potassium_mg\": 19,
\"photo\": \"ducimus\",
\"foods\": [
{
\"food_id\": 4,
\"quantity\": \"ipsa\",
\"description\": \"Delectus quia excepturi qui voluptatum excepturi qui modi.\"
}
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/recipes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "est",
"description": "Eum et aut ipsum ex.",
"instructions": "maxime",
"preparation_time": 17,
"servings": 12,
"is_low_potassium": false,
"is_low_sodium": true,
"calories": 16,
"sodium_mg": 9,
"potassium_mg": 19,
"photo": "ducimus",
"foods": [
{
"food_id": 4,
"quantity": "ipsa",
"description": "Delectus quia excepturi qui voluptatum excepturi qui modi."
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les infos d'une recette
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/recipes/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/recipes/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/recipes/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une recette
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/recipes/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"nobis\",
\"description\": \"Rerum est enim odit dolorum qui ex nihil.\",
\"instructions\": \"minus\",
\"preparation_time\": \"ducimus\",
\"servings\": \"in\",
\"is_low_potassium\": true,
\"is_low_sodium\": false,
\"calories\": \"reiciendis\",
\"sodium_mg\": \"non\",
\"potassium_mg\": \"et\",
\"photo\": \"repellat\",
\"foods\": [
{
\"food_id\": 6,
\"quantity\": \"et\",
\"description\": \"Rerum corporis quisquam ex amet aliquid ipsum voluptas.\"
}
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/recipes/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "nobis",
"description": "Rerum est enim odit dolorum qui ex nihil.",
"instructions": "minus",
"preparation_time": "ducimus",
"servings": "in",
"is_low_potassium": true,
"is_low_sodium": false,
"calories": "reiciendis",
"sodium_mg": "non",
"potassium_mg": "et",
"photo": "repellat",
"foods": [
{
"food_id": 6,
"quantity": "et",
"description": "Rerum corporis quisquam ex amet aliquid ipsum voluptas."
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs recettes
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/recipes/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/recipes/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
1
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs recettes
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/recipes/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
5
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/recipes/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
5
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Rôles
Gestion des rôles
Lister les roles
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/roles/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 26,
\"nbre_items\": 15,
\"filter_value\": \"et\",
\"types\": [
\"voluptas\"
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/roles/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 26,
"nbre_items": 15,
"filter_value": "et",
"types": [
"voluptas"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une liste de role
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/roles" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ut\",
\"permissions\": [
17
],
\"description\": \"Et perspiciatis maxime earum assumenda aut.\",
\"type\": \"asperiores\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/roles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "ut",
"permissions": [
17
],
"description": "Et perspiciatis maxime earum assumenda aut.",
"type": "asperiores"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un role spécifique
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/roles/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/roles/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/roles/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier ou un role spécifique
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/roles/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"et\",
\"permissions\": [
8
],
\"description\": \"Quia qui nobis quia assumenda consequatur.\",
\"type\": \"necessitatibus\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/roles/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "et",
"permissions": [
8
],
"description": "Quia qui nobis quia assumenda consequatur.",
"type": "necessitatibus"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Séances de dialyse
Gestion des séances de dialyse
Lister les séances de dialyse
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/dialysis-sessions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 74,
\"nbre_items\": 6,
\"filter_value\": \"asxezrayxlyycinury\",
\"trashed\": true,
\"patient_id\": 6,
\"doctor_id\": 6,
\"start_date\": \"2025-06-02\",
\"end_date\": \"2042-03-29\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/dialysis-sessions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 74,
"nbre_items": 6,
"filter_value": "asxezrayxlyycinury",
"trashed": true,
"patient_id": 6,
"doctor_id": 6,
"start_date": "2025-06-02",
"end_date": "2042-03-29"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une séance de dialyse
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/dialysis-sessions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 1,
\"doctor_id\": 17,
\"session_start\": \"reprehenderit\",
\"session_end\": \"qui\",
\"weight_before\": \"rerum\",
\"weight_after\": \"incidunt\",
\"fluid_removed\": \"nihil\",
\"blood_pressure_post\": \"ea\",
\"side_effects\": \"ratione\",
\"description\": \"Et sunt rerum delectus vel eum.\",
\"observation\": \"in\",
\"status\": \"done\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/dialysis-sessions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 1,
"doctor_id": 17,
"session_start": "reprehenderit",
"session_end": "qui",
"weight_before": "rerum",
"weight_after": "incidunt",
"fluid_removed": "nihil",
"blood_pressure_post": "ea",
"side_effects": "ratione",
"description": "Et sunt rerum delectus vel eum.",
"observation": "in",
"status": "done"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher une séance de dialyse
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/dialysis-sessions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/dialysis-sessions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/dialysis-sessions/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une séance de dialyse
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/dialysis-sessions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 17,
\"doctor_id\": 12,
\"session_start\": \"voluptatum\",
\"session_end\": \"molestiae\",
\"blood_pressure_post\": \"nobis\",
\"side_effects\": \"sint\",
\"status\": \"pending\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/dialysis-sessions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 17,
"doctor_id": 12,
"session_start": "voluptatum",
"session_end": "molestiae",
"blood_pressure_post": "nobis",
"side_effects": "sint",
"status": "pending"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver plusieurs séances de dialyse
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/dialysis-sessions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/dialysis-sessions/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
11
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer plusieurs séances de dialyse
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/dialysis-sessions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
20
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/dialysis-sessions/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
20
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Upload de fichier
Gestion des uploads de fichiers
Upload d'un fichier
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/upload-photo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"photo\": \"i\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/upload-photo"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"photo": "i"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Utilisateurs
Gestion des utilisateurs
Fonction qui permet de recuperer la liste des utilisateurs
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/users/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"role_id\": 13,
\"page_items\": 66,
\"nbre_items\": 6,
\"filter_value\": \"ut\",
\"in_order_name\": false,
\"health_center_id\": 7,
\"department_id\": 14,
\"coverage_type\": \"obligatory\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/users/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"role_id": 13,
"page_items": 66,
"nbre_items": 6,
"filter_value": "ut",
"in_order_name": false,
"health_center_id": 7,
"department_id": 14,
"coverage_type": "obligatory"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction qui permet d'ajouter un utilisateur sans passer par la verification
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/users" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"username\": \"bevkzrblmf\",
\"firstname\": \"hioqmtxwcdmndsfz\",
\"lastname\": \"jwhyjesbmrwsgaecvvew\",
\"gender\": \"male\",
\"birthday\": \"2025-06-02T16:53:01\",
\"nationality\": \"nsiod\",
\"nui\": \"avhqvjpfgkpisesyhlpkmhh\",
\"niss\": \"pidagyhakchthdkcyocgeoepm\",
\"email\": \"amckenzie@example.com\",
\"phone\": \"eotkniwalefw\",
\"phone2\": \"bxtdfgcnugvnqe\",
\"city\": \"hm\",
\"address\": \"fgad\",
\"country\": \"vaocbqeudspz\",
\"password\": \"\\\"}2O_52_\",
\"photo\": \"ut\",
\"specialty\": \"dwodtgbdt\",
\"license_number\": \"omvfoelbxtyucpoialc\",
\"years_of_experience\": 39,
\"work_schedule\": \"nimrpk\",
\"role_id\": 20,
\"health_center_id\": 8,
\"department_id\": 20,
\"mutuality_number\": \"ebxiinbxmzhhqfbxckaoenls\",
\"coverage_type\": \"obligatory\",
\"guardian_name\": \"pijbhiqy\",
\"guardian_contact\": \"rwvszza\",
\"guardian_relation\": \"vngfjngkgey\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "bevkzrblmf",
"firstname": "hioqmtxwcdmndsfz",
"lastname": "jwhyjesbmrwsgaecvvew",
"gender": "male",
"birthday": "2025-06-02T16:53:01",
"nationality": "nsiod",
"nui": "avhqvjpfgkpisesyhlpkmhh",
"niss": "pidagyhakchthdkcyocgeoepm",
"email": "amckenzie@example.com",
"phone": "eotkniwalefw",
"phone2": "bxtdfgcnugvnqe",
"city": "hm",
"address": "fgad",
"country": "vaocbqeudspz",
"password": "\"}2O_52_",
"photo": "ut",
"specialty": "dwodtgbdt",
"license_number": "omvfoelbxtyucpoialc",
"years_of_experience": 39,
"work_schedule": "nimrpk",
"role_id": 20,
"health_center_id": 8,
"department_id": 20,
"mutuality_number": "ebxiinbxmzhhqfbxckaoenls",
"coverage_type": "obligatory",
"guardian_name": "pijbhiqy",
"guardian_contact": "rwvszza",
"guardian_relation": "vngfjngkgey"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cette route permet d'afficher les informations d'un utilisateur
requires authentication
Example request:
curl --request GET \
--get "https://cms.ms-hotel.net/api/users/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cms.ms-hotel.net/api/users/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The route api/users/1 could not be found."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Changer un mot de passe
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/users/update-password/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"password\": \";U9y].,\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/users/update-password/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": ";U9y].,"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction permettant de mettre à jour les informations d'un utilisateur
requires authentication
Example request:
curl --request PUT \
"https://cms.ms-hotel.net/api/users/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"firstname\": \"jknekkerwqrnevfgbtsknrmu\",
\"lastname\": \"qjdudhraftwpxnpxvzzmr\",
\"gender\": \"female\",
\"birthday\": \"2025-06-02T16:53:01\",
\"nationality\": \"xcdybegygjknjcrbzh\",
\"nui\": \"kmnewcl\",
\"niss\": \"qsurvbkuiciugg\",
\"connexion_type\": \"email\",
\"email\": \"tyson.larkin@example.com\",
\"phone\": \"d\",
\"phone2\": \"hsqraqag\",
\"city\": \"x\",
\"address\": \"nkpnnh\",
\"country\": \"apfbsbwy\",
\"password\": \"Wh6o\\/gglI`FrS;Y[}\",
\"photo\": \"possimus\",
\"specialty\": \"bqfaljudfy\",
\"license_number\": \"jbucewmhqy\",
\"years_of_experience\": 76,
\"work_schedule\": \"ik\",
\"role_id\": 4,
\"health_center_id\": 10,
\"department_id\": 20,
\"mutuality_number\": \"acxdjfsyjsfkbnhejrbwaagh\",
\"coverage_type\": \"complementary\",
\"guardian_name\": \"myuaxvidweaojqnli\",
\"guardian_contact\": \"dwekamexspqxgfzs\",
\"guardian_relation\": \"soavshlmhkrnweeondpt\"
}"
const url = new URL(
"https://cms.ms-hotel.net/api/users/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"firstname": "jknekkerwqrnevfgbtsknrmu",
"lastname": "qjdudhraftwpxnpxvzzmr",
"gender": "female",
"birthday": "2025-06-02T16:53:01",
"nationality": "xcdybegygjknjcrbzh",
"nui": "kmnewcl",
"niss": "qsurvbkuiciugg",
"connexion_type": "email",
"email": "tyson.larkin@example.com",
"phone": "d",
"phone2": "hsqraqag",
"city": "x",
"address": "nkpnnh",
"country": "apfbsbwy",
"password": "Wh6o\/gglI`FrS;Y[}",
"photo": "possimus",
"specialty": "bqfaljudfy",
"license_number": "jbucewmhqy",
"years_of_experience": 76,
"work_schedule": "ik",
"role_id": 4,
"health_center_id": 10,
"department_id": 20,
"mutuality_number": "acxdjfsyjsfkbnhejrbwaagh",
"coverage_type": "complementary",
"guardian_name": "myuaxvidweaojqnli",
"guardian_contact": "dwekamexspqxgfzs",
"guardian_relation": "soavshlmhkrnweeondpt"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction pour le multiple archivage des utilisateurs
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/users/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_ids\": [
1
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/users/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_ids": [
1
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de restauration multiples d'utilisateurs
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/users/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_ids\": [
11
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/users/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_ids": [
11
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de suppression définitive multiple d'utilisateurs
requires authentication
Example request:
curl --request POST \
"https://cms.ms-hotel.net/api/users/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_ids\": [
14
]
}"
const url = new URL(
"https://cms.ms-hotel.net/api/users/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_ids": [
14
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.