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.
Admissions
Gestion des hospitalisations des patients
Lister les admissions
requires authentication
Permet de récupérer la liste des admissions
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/admissions/all?patient_id=1&doctor_id=2&medical_page_id=5&status=active&room_number=A12&start_date=2026-01-01&end_date=2026-12-31&filter_value=sed&trashed=" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 18,
\"doctor_id\": 7,
\"medical_page_id\": 19,
\"idbed\": 8,
\"status\": \"transferred\",
\"room_number\": \"sunt\",
\"diagnosis_summary\": \"dolorem\",
\"treatment_plan\": \"architecto\",
\"allergies\": \"eius\",
\"emergency_contact\": \"ipsam\",
\"start_date\": \"2026-05-18T11:12:13\",
\"end_date\": \"2026-05-18T11:12:13\",
\"filter_value\": \"commodi\",
\"trashed\": false,
\"page_items\": 9,
\"nbre_items\": 9
}"
const url = new URL(
"https://dev.ms-hotel.net/api/admissions/all"
);
const params = {
"patient_id": "1",
"doctor_id": "2",
"medical_page_id": "5",
"status": "active",
"room_number": "A12",
"start_date": "2026-01-01",
"end_date": "2026-12-31",
"filter_value": "sed",
"trashed": "0",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 18,
"doctor_id": 7,
"medical_page_id": 19,
"idbed": 8,
"status": "transferred",
"room_number": "sunt",
"diagnosis_summary": "dolorem",
"treatment_plan": "architecto",
"allergies": "eius",
"emergency_contact": "ipsam",
"start_date": "2026-05-18T11:12:13",
"end_date": "2026-05-18T11:12:13",
"filter_value": "commodi",
"trashed": false,
"page_items": 9,
"nbre_items": 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.
Créer une admission
requires authentication
Permet d'enregistrer une nouvelle hospitalisation.
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/admissions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 1,
\"doctor_id\": 2,
\"medical_page_id\": 5,
\"idbed\": 18,
\"admitted_at\": \"2026-05-05 10:00:00\",
\"discharged_at\": \"2026-05-10 12:00:00\",
\"notes\": \"sint\",
\"room_number\": \"A12\",
\"status\": \"active\",
\"diagnosis_summary\": \"consequuntur\",
\"treatment_plan\": \"dolor\",
\"allergies\": \"ratione\",
\"emergency_contact\": \"wpvmhdflehdnoybtjbe\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/admissions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 1,
"doctor_id": 2,
"medical_page_id": 5,
"idbed": 18,
"admitted_at": "2026-05-05 10:00:00",
"discharged_at": "2026-05-10 12:00:00",
"notes": "sint",
"room_number": "A12",
"status": "active",
"diagnosis_summary": "consequuntur",
"treatment_plan": "dolor",
"allergies": "ratione",
"emergency_contact": "wpvmhdflehdnoybtjbe"
};
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 admission
requires authentication
Retourne les détails d'une admission.
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/admissions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/admissions/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/admissions/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 admission
requires authentication
Tous les champs sont modifiables
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/admissions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 12,
\"doctor_id\": 3,
\"medical_page_id\": 19,
\"room_number\": \"uhaqa\",
\"idbed\": 1,
\"admitted_at\": \"2026-05-18T11:12:13\",
\"discharged_at\": \"2026-05-18T11:12:13\",
\"status\": \"discharged\",
\"notes\": \"aut\",
\"diagnosis_summary\": \"facere\",
\"treatment_plan\": \"sed\",
\"allergies\": \"sit\",
\"emergency_contact\": \"fdrh\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/admissions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 12,
"doctor_id": 3,
"medical_page_id": 19,
"room_number": "uhaqa",
"idbed": 1,
"admitted_at": "2026-05-18T11:12:13",
"discharged_at": "2026-05-18T11:12:13",
"status": "discharged",
"notes": "aut",
"diagnosis_summary": "facere",
"treatment_plan": "sed",
"allergies": "sit",
"emergency_contact": "fdrh"
};
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.
Mettre en corbeille
requires authentication
Body : ids[]
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/admissions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/admissions/trash"
);
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.
Restaurer
requires authentication
Body : ids[]
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/admissions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/admissions/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.
Authentification
Gestion de l'authentification des utilisateurs
Fonction permettant à un utilisateur déjà inscrit de se connecter
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"username\": \"ipsam\",
\"password\": \"SwB.Uh:x.hxxh&\\\"8,\",
\"device_key\": \"qui\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "ipsam",
"password": "SwB.Uh:x.hxxh&\"8,",
"device_key": "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.
Fonction permettant à un utilisateur connecté de se déconnecter
requires authentication
Example request:
curl --request POST \
"https://dev.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://dev.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.
Avance sur salaire / Salary advance
Gestion des avances sur salaire
Afficher la liste filtrée des avances sur salaire
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/salaries-advances/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 11,
\"nbre_items\": 11,
\"filter_value\": \"rerum\",
\"trashed\": true,
\"user_id\": 9,
\"user_approve_id\": 4,
\"date\": \"2026-05-18\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/salaries-advances/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 11,
"nbre_items": 11,
"filter_value": "rerum",
"trashed": true,
"user_id": 9,
"user_approve_id": 4,
"date": "2026-05-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.
Show the form for creating a new resource.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/salaries-advances" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"salary_advances\": [
{
\"user_approve_id\": 5,
\"amount\": \"provident\",
\"reason\": \"incidunt\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/salaries-advances"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"salary_advances": [
{
"user_approve_id": 5,
"amount": "provident",
"reason": "incidunt"
}
]
};
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 retenue sur salaire spécifique
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/salaries-advances/porro" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/salaries-advances/porro"
);
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/salaries-advances/porro 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 à jour une retenue sur salaire spécifique
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/salaries-advances/natus" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_approve_id\": 5,
\"status\": \"pending_approval\",
\"reason\": \"qui\",
\"comments\": \"ea\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/salaries-advances/natus"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_approve_id": 5,
"status": "pending_approval",
"reason": "qui",
"comments": "ea"
};
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 (soft delete) les avances sur salaire spécifiées.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/salaries-advances/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/salaries-advances/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 les avances sur salaire archivées.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/salaries-advances/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
20
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/salaries-advances/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.
Avertissements
Gestion des avertissements
Lister les avertissements
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/warnings/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 45,
\"nbre_items\": 10,
\"user_id\": 10,
\"date\": \"2026-05-18\",
\"filter_value\": \"ymkqjdgfzjmuxkpanovt\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/warnings/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 45,
"nbre_items": 10,
"user_id": 10,
"date": "2026-05-18",
"filter_value": "ymkqjdgfzjmuxkpanovt"
};
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 ou plusieurs avertissements
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/warnings" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"warnings\": [
{
\"user_id\": 8,
\"reason\": \"veniam\",
\"date\": \"2026-05-18\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/warnings"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"warnings": [
{
"user_id": 8,
"reason": "veniam",
"date": "2026-05-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.
Afficher les détails d'un avertissement
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/warnings/8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/warnings/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/warnings/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 les détails d'un avertissement
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/warnings/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 20,
\"date\": \"2026-05-18\",
\"page_items\": 17,
\"nbre_items\": 15,
\"filter_value\": \"et\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/warnings/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 20,
"date": "2026-05-18",
"page_items": 17,
"nbre_items": 15,
"filter_value": "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.
Mettre un ou plusieurs avertissements en corbeille (soft delete)
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/warnings/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"warning_ids\": [
9
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/warnings/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"warning_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 un ou plusieurs avertissements de la corbeille
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/warnings/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"warning_ids\": [
5
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/warnings/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"warning_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.
Supprimer définitivement un ou plusieurs avertissements
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/warnings/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"warning_ids\": [
5
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/warnings/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"warning_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.
Bons d'achats
Gestion des bons d'achat
Afficher une liste filtrée des bons d'achat
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/purchase-orders/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 51,
\"nbre_items\": 17,
\"filter_value\": \"nlbpmssqacagvfv\",
\"status\": \"approved\",
\"priority\": \"low\",
\"supplier_id\": 15,
\"responsible_id\": 19,
\"medication_ids\": [
8
],
\"trashed\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/purchase-orders/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 51,
"nbre_items": 17,
"filter_value": "nlbpmssqacagvfv",
"status": "approved",
"priority": "low",
"supplier_id": 15,
"responsible_id": 19,
"medication_ids": [
8
],
"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.
Enregistrer un bon d'achat
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/purchase-orders" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"supplier_id\": 7,
\"responsible_id\": 11,
\"description\": \"Molestias quas in amet amet voluptas.\",
\"status\": \"cancelled\",
\"priority\": \"high\",
\"quotation_file\": \"velit\",
\"medications\": [
{
\"id\": 12,
\"unit_price\": 47,
\"quantity\": 34
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/purchase-orders"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"supplier_id": 7,
"responsible_id": 11,
"description": "Molestias quas in amet amet voluptas.",
"status": "cancelled",
"priority": "high",
"quotation_file": "velit",
"medications": [
{
"id": 12,
"unit_price": 47,
"quantity": 34
}
]
};
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 bon d'achat spécifique
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/purchase-orders/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/purchase-orders/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/purchase-orders/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.
Update the specified resource in storage.
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/purchase-orders/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"supplier_id\": 6,
\"responsible_id\": 7,
\"description\": \"Possimus nostrum numquam voluptas totam.\",
\"status\": \"pending_approval\",
\"priority\": \"medium\",
\"quotation_file\": \"et\",
\"medications\": [
{
\"id\": 20,
\"unit_price\": 30,
\"quantity\": 42
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/purchase-orders/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"supplier_id": 6,
"responsible_id": 7,
"description": "Possimus nostrum numquam voluptas totam.",
"status": "pending_approval",
"priority": "medium",
"quotation_file": "et",
"medications": [
{
"id": 20,
"unit_price": 30,
"quantity": 42
}
]
};
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 bonds d'achat
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/purchase-orders/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/purchase-orders/trash"
);
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.
Fonction de restauration multiples des bonds d'achat
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/purchase-orders/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
6
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/purchase-orders/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
6
]
};
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.
Caisse / Facturation
Gestion des factures et paiements MS-Care
Lister les factures
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/invoices/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 4,
\"nbre_items\": 2,
\"filter_value\": \"bpjtysa\",
\"patient_id\": 14,
\"cashier_id\": 7,
\"status\": \"expedita\",
\"payment_mode\": \"aliquid\",
\"date_from\": \"2026-05-18\",
\"date_to\": \"2026-05-18\",
\"trashed\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/invoices/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 4,
"nbre_items": 2,
"filter_value": "bpjtysa",
"patient_id": 14,
"cashier_id": 7,
"status": "expedita",
"payment_mode": "aliquid",
"date_from": "2026-05-18",
"date_to": "2026-05-18",
"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.
Créer une facture avec ses lignes
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/invoices" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 8,
\"medical_page_id\": 18,
\"discount\": 79,
\"payment_mode\": \"inventore\",
\"notes\": \"autem\",
\"mm_operator\": \"iusto\",
\"mm_payer_number\": \"et\",
\"mm_transaction_ref\": \"necessitatibus\",
\"mm_payment_date\": \"2026-05-18\",
\"insurance_name\": \"voluptatem\",
\"insurance_ref\": \"aut\",
\"insurance_amount\": 82,
\"patient_amount\": 47,
\"items\": [
{
\"item_type\": \"distinctio\",
\"label\": \"quasi\",
\"quantity\": 57,
\"unit_price\": 6,
\"lab_request_id\": 2,
\"nursing_act_id\": 15,
\"medication_id\": 10,
\"prescription_id\": 6
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/invoices"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 8,
"medical_page_id": 18,
"discount": 79,
"payment_mode": "inventore",
"notes": "autem",
"mm_operator": "iusto",
"mm_payer_number": "et",
"mm_transaction_ref": "necessitatibus",
"mm_payment_date": "2026-05-18",
"insurance_name": "voluptatem",
"insurance_ref": "aut",
"insurance_amount": 82,
"patient_amount": 47,
"items": [
{
"item_type": "distinctio",
"label": "quasi",
"quantity": 57,
"unit_price": 6,
"lab_request_id": 2,
"nursing_act_id": 15,
"medication_id": 10,
"prescription_id": 6
}
]
};
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 facture
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/invoices/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/invoices/7"
);
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/invoices/7 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 à jour une facture (paiement complémentaire)
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/invoices/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"amount_paid\": 33,
\"payment_mode\": \"dicta\",
\"discount\": 37,
\"notes\": \"veritatis\",
\"mm_operator\": \"ipsa\",
\"mm_payer_number\": \"praesentium\",
\"mm_transaction_ref\": \"laborum\",
\"mm_payment_date\": \"2026-05-18\",
\"insurance_name\": \"omnis\",
\"insurance_ref\": \"expedita\",
\"insurance_amount\": 90,
\"patient_amount\": 26
}"
const url = new URL(
"https://dev.ms-hotel.net/api/invoices/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount_paid": 33,
"payment_mode": "dicta",
"discount": 37,
"notes": "veritatis",
"mm_operator": "ipsa",
"mm_payer_number": "praesentium",
"mm_transaction_ref": "laborum",
"mm_payment_date": "2026-05-18",
"insurance_name": "omnis",
"insurance_ref": "expedita",
"insurance_amount": 90,
"patient_amount": 26
};
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.
Annuler une facture (avec traçabilité)
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/invoices/10/cancel" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/invoices/10/cancel"
);
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.
Archiver des factures
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/invoices/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/invoices/trash"
);
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.
Restaurer des factures
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/invoices/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
13
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/invoices/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.
Carnet Médical
Gestion des carnets médicaux
Lister les carnets médicaux
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 23,
\"nbre_items\": 5,
\"filter_value\": \"d\",
\"responsible_doctor_id\": 9,
\"health_center_id\": 18,
\"patient_id\": 4,
\"trashed\": true,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"ckd_stage\": \"officia\",
\"dialysis_type\": \"peritoneal\",
\"dialysis_center\": \"quis\",
\"current_doctor_name\": \"ut\",
\"ckd_diagnosis_date\": \"2026-05-18T11:12:12\",
\"blood_type\": \"culpa\",
\"status\": \"blanditiis\"
}"
const url = new URL(
"https://dev.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": 23,
"nbre_items": 5,
"filter_value": "d",
"responsible_doctor_id": 9,
"health_center_id": 18,
"patient_id": 4,
"trashed": true,
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"ckd_stage": "officia",
"dialysis_type": "peritoneal",
"dialysis_center": "quis",
"current_doctor_name": "ut",
"ckd_diagnosis_date": "2026-05-18T11:12:12",
"blood_type": "culpa",
"status": "blanditiis"
};
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://dev.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=6"\
--form "responsible_doctor_id=20"\
--form "health_center_id=7"\
--form "blood_type=A-"\
--form "known_allergies=eum"\
--form "chronic_diseases=excepturi"\
--form "observation=quod"\
--form "status=undone"\
--form "current_doctor_name=earum"\
--form "current_doctor_phone=commodi"\
--form "current_doctor_address=doloremque"\
--form "medical_history=eveniet"\
--form "current_treatments=ut"\
--form "known_kidney_diseases=unde"\
--form "autoimmune_or_infectious_diseases=consequatur"\
--form "allergies=autem"\
--form "ckd_stage=soluta"\
--form "ckd_diagnosis_date=2026-05-18T11:12:12"\
--form "ckd_etiology=illo"\
--form "recent_biological_tests=tenetur"\
--form "dry_weight=8940.94399"\
--form "dialysis_indicated="\
--form "dialysis_type=hemodialysis"\
--form "dialysis_center=est"\
--form "dialysis_frequency=omnis"\
--form "dialysis_complications=non"\
--form "renal_imaging_file=@/tmp/phpQWh4uH" const url = new URL(
"https://dev.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', '6');
body.append('responsible_doctor_id', '20');
body.append('health_center_id', '7');
body.append('blood_type', 'A-');
body.append('known_allergies', 'eum');
body.append('chronic_diseases', 'excepturi');
body.append('observation', 'quod');
body.append('status', 'undone');
body.append('current_doctor_name', 'earum');
body.append('current_doctor_phone', 'commodi');
body.append('current_doctor_address', 'doloremque');
body.append('medical_history', 'eveniet');
body.append('current_treatments', 'ut');
body.append('known_kidney_diseases', 'unde');
body.append('autoimmune_or_infectious_diseases', 'consequatur');
body.append('allergies', 'autem');
body.append('ckd_stage', 'soluta');
body.append('ckd_diagnosis_date', '2026-05-18T11:12:12');
body.append('ckd_etiology', 'illo');
body.append('recent_biological_tests', 'tenetur');
body.append('dry_weight', '8940.94399');
body.append('dialysis_indicated', '');
body.append('dialysis_type', 'hemodialysis');
body.append('dialysis_center', 'est');
body.append('dialysis_frequency', 'omnis');
body.append('dialysis_complications', 'non');
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://dev.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://dev.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://dev.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=1"\
--form "responsible_doctor_id=10"\
--form "health_center_id=1"\
--form "blood_type=AB+"\
--form "known_allergies=nisi"\
--form "chronic_diseases=sed"\
--form "observation=aut"\
--form "status=done"\
--form "current_doctor_name=ex"\
--form "current_doctor_phone=dolorem"\
--form "current_doctor_address=deleniti"\
--form "medical_history=nisi"\
--form "current_treatments=provident"\
--form "known_kidney_diseases=cum"\
--form "autoimmune_or_infectious_diseases=est"\
--form "allergies=ipsum"\
--form "ckd_stage=tempora"\
--form "ckd_diagnosis_date=2026-05-18T11:12:12"\
--form "ckd_etiology=aut"\
--form "recent_biological_tests=rem"\
--form "dry_weight=79"\
--form "dialysis_indicated=1"\
--form "dialysis_type=peritoneal"\
--form "dialysis_center=quae"\
--form "dialysis_frequency=dolores"\
--form "dialysis_complications=voluptas"\
--form "renal_imaging_file=@/tmp/phpaw8YsJ" const url = new URL(
"https://dev.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', '1');
body.append('responsible_doctor_id', '10');
body.append('health_center_id', '1');
body.append('blood_type', 'AB+');
body.append('known_allergies', 'nisi');
body.append('chronic_diseases', 'sed');
body.append('observation', 'aut');
body.append('status', 'done');
body.append('current_doctor_name', 'ex');
body.append('current_doctor_phone', 'dolorem');
body.append('current_doctor_address', 'deleniti');
body.append('medical_history', 'nisi');
body.append('current_treatments', 'provident');
body.append('known_kidney_diseases', 'cum');
body.append('autoimmune_or_infectious_diseases', 'est');
body.append('allergies', 'ipsum');
body.append('ckd_stage', 'tempora');
body.append('ckd_diagnosis_date', '2026-05-18T11:12:12');
body.append('ckd_etiology', 'aut');
body.append('recent_biological_tests', 'rem');
body.append('dry_weight', '79');
body.append('dialysis_indicated', '1');
body.append('dialysis_type', 'peritoneal');
body.append('dialysis_center', 'quae');
body.append('dialysis_frequency', 'dolores');
body.append('dialysis_complications', 'voluptas');
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://dev.ms-hotel.net/api/medical-books/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medical-books/trash"
);
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.
Restaurer plusieurs medical_books
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medical-books/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
20
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medical-books/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.
Catalogue Actes Infirmiers
POST api/nursing-act-catalogs/all
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/nursing-act-catalogs/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 19,
\"nbre_items\": 6,
\"filter_value\": \"ehhtcdqqktauxdlamdeh\",
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"type\": \"et\",
\"is_active\": true,
\"trashed\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/nursing-act-catalogs/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 19,
"nbre_items": 6,
"filter_value": "ehhtcdqqktauxdlamdeh",
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"type": "et",
"is_active": true,
"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.
POST api/nursing-act-catalogs
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/nursing-act-catalogs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ddmr\",
\"type\": \"dolores\",
\"description\": \"Dicta quia qui qui sit.\",
\"price\": 88,
\"is_active\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/nursing-act-catalogs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "ddmr",
"type": "dolores",
"description": "Dicta quia qui qui sit.",
"price": 88,
"is_active": 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.
GET api/nursing-act-catalogs/{nursing_act_catalog}
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/nursing-act-catalogs/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/nursing-act-catalogs/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/nursing-act-catalogs/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.
PUT api/nursing-act-catalogs/{nursing_act_catalog}
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/nursing-act-catalogs/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"umzieohdxmhwyvgbmynvkr\",
\"type\": \"quibusdam\",
\"description\": \"Velit non facere tenetur porro mollitia quis voluptatem incidunt.\",
\"price\": 42,
\"is_active\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/nursing-act-catalogs/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "umzieohdxmhwyvgbmynvkr",
"type": "quibusdam",
"description": "Velit non facere tenetur porro mollitia quis voluptatem incidunt.",
"price": 42,
"is_active": 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.
POST api/nursing-act-catalogs/trash
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/nursing-act-catalogs/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
9
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/nursing-act-catalogs/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.
POST api/nursing-act-catalogs/restore
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/nursing-act-catalogs/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/nursing-act-catalogs/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.
Catalogue Examens Laboratoire
POST api/lab-exam-catalogs/all
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-exam-catalogs/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 14,
\"nbre_items\": 7,
\"filter_value\": \"axjhppusyffbfvkni\",
\"type\": \"esse\",
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"is_active\": false,
\"trashed\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-catalogs/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 14,
"nbre_items": 7,
"filter_value": "axjhppusyffbfvkni",
"type": "esse",
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"is_active": false,
"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.
POST api/lab-exam-catalogs
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-exam-catalogs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"bhtcm\",
\"code\": \"idirrwgyzllfsmtzlznqvppzb\",
\"type\": \"dolor\",
\"description\": \"Eos harum ea dolores repellat fuga ducimus voluptatem.\",
\"price\": 54,
\"turnaround_hours\": 35,
\"preparation_instructions\": \"veritatis\",
\"sample_required\": \"et\",
\"is_active\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-catalogs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "bhtcm",
"code": "idirrwgyzllfsmtzlznqvppzb",
"type": "dolor",
"description": "Eos harum ea dolores repellat fuga ducimus voluptatem.",
"price": 54,
"turnaround_hours": 35,
"preparation_instructions": "veritatis",
"sample_required": "et",
"is_active": 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.
GET api/lab-exam-catalogs/{lab_exam_catalog}
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/lab-exam-catalogs/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-catalogs/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/lab-exam-catalogs/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.
PUT api/lab-exam-catalogs/{lab_exam_catalog}
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/lab-exam-catalogs/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"a\",
\"type\": \"autem\",
\"description\": \"Provident molestiae tenetur doloribus ipsam rem.\",
\"price\": 18,
\"turnaround_hours\": 42,
\"preparation_instructions\": \"est\",
\"sample_required\": \"nostrum\",
\"is_active\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-catalogs/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "a",
"type": "autem",
"description": "Provident molestiae tenetur doloribus ipsam rem.",
"price": 18,
"turnaround_hours": 42,
"preparation_instructions": "est",
"sample_required": "nostrum",
"is_active": 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.
POST api/lab-exam-catalogs/trash
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-exam-catalogs/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
5
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-catalogs/trash"
);
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.
POST api/lab-exam-catalogs/restore
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-exam-catalogs/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
5
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-catalogs/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.
Centres de santé
Gestion des centres de santé
Lister les centres de santé
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 63,
\"nbre_items\": 4,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"filter_value\": \"ekccypaahcxt\",
\"responsible_id\": 14,
\"trashed\": true
}"
const url = new URL(
"https://dev.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": 63,
"nbre_items": 4,
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"filter_value": "ekccypaahcxt",
"responsible_id": 14,
"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://dev.ms-hotel.net/api/health-centers" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"responsible_id\": 14,
\"name\": \"dqzrrznnpteudgdy\",
\"code\": \"xplecd\",
\"description\": \"Consequatur excepturi voluptas est.\",
\"address\": \"azbvhihqktiwgj\",
\"city\": \"ydghbgdcwchddcpnjv\",
\"country\": \"mppjfqsxcalntavifabzowfq\",
\"phone\": \"ttcdtcwqmrkkaiwzppeksi\",
\"logo\": \"lyxlmalmxsxhibpem\",
\"email\": \"walsh.kiera@example.net\",
\"website\": \"ezryhruyumyijnidwzbl\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/health-centers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"responsible_id": 14,
"name": "dqzrrznnpteudgdy",
"code": "xplecd",
"description": "Consequatur excepturi voluptas est.",
"address": "azbvhihqktiwgj",
"city": "ydghbgdcwchddcpnjv",
"country": "mppjfqsxcalntavifabzowfq",
"phone": "ttcdtcwqmrkkaiwzppeksi",
"logo": "lyxlmalmxsxhibpem",
"email": "walsh.kiera@example.net",
"website": "ezryhruyumyijnidwzbl"
};
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://dev.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://dev.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://dev.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\": 15,
\"name\": \"leyckuyoxaqxssotis\",
\"code\": \"wvywxpskzwoci\",
\"description\": \"Hic non eos necessitatibus est.\",
\"address\": \"slhszsoyxjxidbvyypo\",
\"city\": \"u\",
\"country\": \"g\",
\"phone\": \"ulypaecelzvebq\",
\"logo\": \"qryizwvhylyatqidovfo\",
\"email\": \"lkihn@example.net\",
\"website\": \"sehpmpdldqj\"
}"
const url = new URL(
"https://dev.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": 15,
"name": "leyckuyoxaqxssotis",
"code": "wvywxpskzwoci",
"description": "Hic non eos necessitatibus est.",
"address": "slhszsoyxjxidbvyypo",
"city": "u",
"country": "g",
"phone": "ulypaecelzvebq",
"logo": "qryizwvhylyatqidovfo",
"email": "lkihn@example.net",
"website": "sehpmpdldqj"
};
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://dev.ms-hotel.net/api/health-centers/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
8
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/health-centers/trash"
);
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.
Restaurer plusieurs health_centers
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/health-centers/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/health-centers/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.
Chat
Gestion des discussions du chat
Lister les discussions (privées et en groupe)
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 55,
\"nbre_items\": 8,
\"filter_value\": \"zbqebooagluidbswtf\",
\"is_group\": true
}"
const url = new URL(
"https://dev.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": 55,
"nbre_items": 8,
"filter_value": "zbqebooagluidbswtf",
"is_group": 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.
Démarrer une discussion
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/chat/rooms" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"twxq\",
\"photo\": \"jcftaasqkg\",
\"participants\": [
17
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/chat/rooms"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "twxq",
"photo": "jcftaasqkg",
"participants": [
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.
Afficher les infos d'une discussion
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/chat/rooms/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/chat/rooms/20"
);
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/20 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://dev.ms-hotel.net/api/chat/rooms/5" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"rrboduzlhlm\",
\"photo\": \"cs\",
\"participants\": [
12
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/chat/rooms/5"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "rrboduzlhlm",
"photo": "cs",
"participants": [
12
]
};
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://dev.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\": 44,
\"nbre_items\": 11,
\"filter_value\": \"fofuznwcomctqdiu\",
\"message_room_id\": 4,
\"user_id\": 9
}"
const url = new URL(
"https://dev.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": 44,
"nbre_items": 11,
"filter_value": "fofuznwcomctqdiu",
"message_room_id": 4,
"user_id": 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.
Ajouter un message
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 20,
\"body\": \"expedita\"
}"
const url = new URL(
"https://dev.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": 20,
"body": "expedita"
};
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://dev.ms-hotel.net/api/chat/messages/13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/chat/messages/13"
);
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/13 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://dev.ms-hotel.net/api/chat/messages/8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": \"enim\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/chat/messages/8"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"body": "enim"
};
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://dev.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\": 33,
\"nbre_items\": 7,
\"filter_value\": \"uo\",
\"patient_id\": 17,
\"medical_page_id\": 5,
\"date\": \"2026-05-18\",
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"alert_status\": \"critical\",
\"trashed\": false
}"
const url = new URL(
"https://dev.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": 33,
"nbre_items": 7,
"filter_value": "uo",
"patient_id": 17,
"medical_page_id": 5,
"date": "2026-05-18",
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"alert_status": "critical",
"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://dev.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,
\"medical_page_id\": 1,
\"dialysis_session_id\": 2,
\"weight_kg\": 186.00594974,
\"blood_pressure_systolic\": 20,
\"blood_pressure_diastolic\": 18,
\"heart_rate\": 17,
\"temperature_c\": 1692.224,
\"blood_glucose\": 36513.1835705,
\"urine_output_ml\": 17,
\"spo2\": 16,
\"creatinine\": 2306.6233,
\"urea\": 4244.5209622,
\"creatinine_clearance\": 41144944.6259,
\"potassium\": 335702.1479349,
\"sodium\": 30.606948,
\"phosphorus\": 2.364226,
\"calcium\": 2143.363,
\"hemoglobin\": 5.71,
\"notes\": \"et\",
\"date\": \"2026-05-18T11:12:12\",
\"alert_status\": \"critical\"
}"
const url = new URL(
"https://dev.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,
"medical_page_id": 1,
"dialysis_session_id": 2,
"weight_kg": 186.00594974,
"blood_pressure_systolic": 20,
"blood_pressure_diastolic": 18,
"heart_rate": 17,
"temperature_c": 1692.224,
"blood_glucose": 36513.1835705,
"urine_output_ml": 17,
"spo2": 16,
"creatinine": 2306.6233,
"urea": 4244.5209622,
"creatinine_clearance": 41144944.6259,
"potassium": 335702.1479349,
"sodium": 30.606948,
"phosphorus": 2.364226,
"calcium": 2143.363,
"hemoglobin": 5.71,
"notes": "et",
"date": "2026-05-18T11:12:12",
"alert_status": "critical"
};
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://dev.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://dev.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://dev.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\": 12,
\"medical_page_id\": 4,
\"dialysis_session_id\": 9,
\"weight_kg\": 38093010.55508735,
\"blood_pressure_systolic\": 18,
\"blood_pressure_diastolic\": 4,
\"heart_rate\": 14,
\"temperature_c\": 1.1,
\"blood_glucose\": 387992373.055829,
\"urine_output_ml\": 13,
\"spo2\": 6,
\"creatinine\": 265.213481,
\"urea\": 373.599506602,
\"creatinine_clearance\": 63162750.39088,
\"potassium\": 0.32,
\"sodium\": 72.78,
\"phosphorus\": 17.57,
\"calcium\": 61.940901,
\"hemoglobin\": 98859146,
\"notes\": \"dolorum\",
\"date\": \"2026-05-18T11:12:12\",
\"alert_status\": \"normal\"
}"
const url = new URL(
"https://dev.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": 12,
"medical_page_id": 4,
"dialysis_session_id": 9,
"weight_kg": 38093010.55508735,
"blood_pressure_systolic": 18,
"blood_pressure_diastolic": 4,
"heart_rate": 14,
"temperature_c": 1.1,
"blood_glucose": 387992373.055829,
"urine_output_ml": 13,
"spo2": 6,
"creatinine": 265.213481,
"urea": 373.599506602,
"creatinine_clearance": 63162750.39088,
"potassium": 0.32,
"sodium": 72.78,
"phosphorus": 17.57,
"calcium": 61.940901,
"hemoglobin": 98859146,
"notes": "dolorum",
"date": "2026-05-18T11:12:12",
"alert_status": "normal"
};
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://dev.ms-hotel.net/api/check-ups/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/check-ups/trash"
);
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.
Restaurer plusieurs patient_check_ups
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/check-ups/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
12
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/check-ups/restore"
);
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.
Clôture de Caisse
Gestion des clôtures journalières de caisse MS-Care
POST api/cash-closures/all
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/cash-closures/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 3,
\"nbre_items\": 13,
\"cashier_id\": 15,
\"status\": \"closed\",
\"date_from\": \"2026-05-18\",
\"date_to\": \"2026-05-18\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/cash-closures/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 3,
"nbre_items": 13,
"cashier_id": 15,
"status": "closed",
"date_from": "2026-05-18",
"date_to": "2026-05-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.
Créer une clôture de caisse — calcule automatiquement les totaux du jour
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/cash-closures" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"closure_date\": \"2026-05-18\",
\"notes\": \"esse\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/cash-closures"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"closure_date": "2026-05-18",
"notes": "esse"
};
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.
GET api/cash-closures/{cash_closure}
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/cash-closures/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/cash-closures/15"
);
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/cash-closures/15 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.
Clôturer définitivement (passer à closed)
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/cash-closures/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"closed\",
\"notes\": \"unde\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/cash-closures/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "closed",
"notes": "unde"
};
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.
Contrats
Gestion des contrats employés
Retourne la liste des contrats avec la possibilité de filtrer et paginer les résultats.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/contracts/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 3,
\"nbre_items\": 15,
\"filter_value\": \"neque\",
\"position\": \"corrupti\",
\"status\": \"Terminated\",
\"trashed\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/contracts/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 3,
"nbre_items": 15,
"filter_value": "neque",
"position": "corrupti",
"status": "Terminated",
"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.
Affiche les détails d’un contrat spécifique à partir de son identifiant.
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/contracts/aspernatur" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/contracts/aspernatur"
);
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/contracts/aspernatur 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.
Crée un nouveau contrat pour un utilisateur, après vérification d'absence de contrat actif.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/contracts" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 4,
\"user_approve_id\": 14,
\"type\": \"harum\",
\"description\": \"Libero eos ipsa similique.\",
\"start_date\": \"2026-05-18T11:12:13\",
\"duration\": 12,
\"working_hours\": \"voluptatem\",
\"position\": \"aut\",
\"gross_salary\": 52,
\"status\": \"Active\",
\"service_benefits\": \"vel\",
\"bonus\": \"labore\",
\"number_days_off\": 20
}"
const url = new URL(
"https://dev.ms-hotel.net/api/contracts"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 4,
"user_approve_id": 14,
"type": "harum",
"description": "Libero eos ipsa similique.",
"start_date": "2026-05-18T11:12:13",
"duration": 12,
"working_hours": "voluptatem",
"position": "aut",
"gross_salary": 52,
"status": "Active",
"service_benefits": "vel",
"bonus": "labore",
"number_days_off": 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.
Met à jour les informations d’un contrat donné.
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/contracts/accusantium" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 6,
\"user_approve_id\": 9,
\"type\": \"CDI\",
\"description\": \"Consequuntur provident voluptate reiciendis et minima mollitia.\",
\"start_date\": \"2026-05-18T11:12:13\",
\"duration\": 34,
\"working_hours\": \"sit\",
\"position\": \"beatae\",
\"gross_salary\": 7,
\"status\": \"Pending\",
\"service_benefits\": \"perferendis\",
\"bonus\": \"nihil\",
\"number_days_off\": 16
}"
const url = new URL(
"https://dev.ms-hotel.net/api/contracts/accusantium"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 6,
"user_approve_id": 9,
"type": "CDI",
"description": "Consequuntur provident voluptate reiciendis et minima mollitia.",
"start_date": "2026-05-18T11:12:13",
"duration": 34,
"working_hours": "sit",
"position": "beatae",
"gross_salary": 7,
"status": "Pending",
"service_benefits": "perferendis",
"bonus": "nihil",
"number_days_off": 16
};
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 (soft delete) les contrats spécifiées.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/contracts/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/contracts/trash"
);
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.
Restaurer les contrats archivés.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/contracts/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
8
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/contracts/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.
Supprimer définitivement les contrats spécifiés.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/contracts/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/contracts/destroy"
);
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.
Demande d'approvisionnement | Supply demand
Contrôleur chargé de la gestion des demandes d'approvisionnement.
Crée une nouvelle demande d'approvisionnement.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/supply-demands" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"jeenphgmubzvleamdhosbso\",
\"description\": \"Omnis veritatis itaque repellat voluptatum.\",
\"responsible_id\": 2,
\"status\": \"accepted\",
\"priority\": \"medium\",
\"medications\": [
{
\"id\": 19,
\"unit_price\": 5,
\"quantity\": 42,
\"supplier_id\": 2
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/supply-demands"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "jeenphgmubzvleamdhosbso",
"description": "Omnis veritatis itaque repellat voluptatum.",
"responsible_id": 2,
"status": "accepted",
"priority": "medium",
"medications": [
{
"id": 19,
"unit_price": 5,
"quantity": 42,
"supplier_id": 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.
Affiche la liste paginée des demandes d'approvisionnement, avec filtres optionnels.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/supply-demands/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"filter_value\": \"dolores\",
\"responsible_id\": 15,
\"priority\": \"medium\",
\"status\": \"accepted\",
\"medication_ids\": [
12
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/supply-demands/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"filter_value": "dolores",
"responsible_id": 15,
"priority": "medium",
"status": "accepted",
"medication_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.
Affiche les détails d'une demande d'approvisionnement spécifique.
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/supply-demands/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/supply-demands/7"
);
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/supply-demands/7 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.
Met à jour les informations d'une demande d'approvisionnement existante.
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/supply-demands/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"pg\",
\"description\": \"Laboriosam eos officiis molestiae delectus nulla.\",
\"responsible_id\": 13,
\"status\": \"accepted\",
\"priority\": \"low\",
\"medications\": [
{
\"id\": 2,
\"unit_price\": 13,
\"quantity\": 82,
\"supplier_id\": 8
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/supply-demands/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "pg",
"description": "Laboriosam eos officiis molestiae delectus nulla.",
"responsible_id": 13,
"status": "accepted",
"priority": "low",
"medications": [
{
"id": 2,
"unit_price": 13,
"quantity": 82,
"supplier_id": 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.
Met en corbeille (suppression logique) une ou plusieurs demandes d'approvisionnement.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/supply-demands/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"supply_demand_ids\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/supply-demands/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"supply_demand_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.
Restaure une ou plusieurs demandes d'approvisionnement supprimées (suppression logique).
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/supply-demands/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"supply_demand_ids\": [
8
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/supply-demands/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"supply_demand_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.
Demande d'explication / Explanation Request
Gestion des demandes d'explication
Afficher les demandes d'explication
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/explanation-requests/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 5,
\"nbre_items\": 15,
\"filter_value\": \"hufqsv\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/explanation-requests/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 5,
"nbre_items": 15,
"filter_value": "hufqsv"
};
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.
Creer une demande d'explication
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/explanation-requests" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"dolores\",
\"description\": \"Optio aut quia minus ut dolore.\",
\"idUser\": 19,
\"idResponsable\": 7,
\"image\": \"voluptates\",
\"comments\": \"qui\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/explanation-requests"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "dolores",
"description": "Optio aut quia minus ut dolore.",
"idUser": 19,
"idResponsable": 7,
"image": "voluptates",
"comments": "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 une demande d'explication spécifique
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/explanation-requests/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/explanation-requests/9"
);
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/explanation-requests/9 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 demande d'explication
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/explanation-requests/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ad\",
\"description\": \"Inventore aperiam ducimus est dolor neque id.\",
\"idUser\": 8,
\"idResponsable\": 11,
\"image\": \"voluptas\",
\"comments\": \"similique\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/explanation-requests/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "ad",
"description": "Inventore aperiam ducimus est dolor neque id.",
"idUser": 8,
"idResponsable": 11,
"image": "voluptas",
"comments": "similique"
};
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 (soft delete) les demandes d'explication.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/explanation-requests/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
10
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/explanation-requests/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 les demandes d'explication archivées.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/explanation-requests/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
17
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/explanation-requests/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.
Demande de congé
Gestion des demandes de congé employé
Lister les congés enregistrés
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/holidays/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 7,
\"user_approve_id\": 10,
\"status\": \"pending_approval\",
\"archive\": \"only_trashed\",
\"date\": \"2026-05-18T11:12:13\",
\"page_items\": 6,
\"nbre_items\": 2,
\"filter_value\": \"quae\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/holidays/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 7,
"user_approve_id": 10,
"status": "pending_approval",
"archive": "only_trashed",
"date": "2026-05-18T11:12:13",
"page_items": 6,
"nbre_items": 2,
"filter_value": "quae"
};
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.
Enregistrer une demande de congé
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/holidays" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"odit\",
\"start_date\": \"2026-05-18T11:12:13\",
\"end_date\": \"2026-05-18T11:12:13\",
\"days_taken\": 4,
\"reason\": \"an\",
\"user_approve_id\": 9
}"
const url = new URL(
"https://dev.ms-hotel.net/api/holidays"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "odit",
"start_date": "2026-05-18T11:12:13",
"end_date": "2026-05-18T11:12:13",
"days_taken": 4,
"reason": "an",
"user_approve_id": 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.
Afficher les détails d'une retenue sur salaire
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/holidays/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/holidays/2"
);
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/holidays/2 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 demande de congé
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/holidays/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"officiis\",
\"start_date\": \"2111-01-18\",
\"end_date\": \"2104-08-15\",
\"days_taken\": 20,
\"reason\": \"noofpsxelcjfm\",
\"status\": \"pending_approval\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/holidays/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "officiis",
"start_date": "2111-01-18",
"end_date": "2104-08-15",
"days_taken": 20,
"reason": "noofpsxelcjfm",
"status": "pending_approval"
};
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 une ou plusieurs demandes de congés
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/holidays/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idHolidays\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/holidays/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idHolidays": [
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 une ou plusieurs demandes de congés
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/holidays/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idHolidays\": [
14
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/holidays/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idHolidays": [
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.
Demandes de Permissions
Contrôleur pour la gestion des demandes de permission des utilisateurs
Affiche une liste paginée des demandes de permission.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/permission-requests/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"rejected\",
\"departure\": \"2026-05-18\",
\"return\": \"2026-05-18\",
\"duration\": 8,
\"page_items\": 80,
\"nbre_items\": 20,
\"filter_value\": \"ebgtmshskfaemuteyujueotxs\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/permission-requests/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "rejected",
"departure": "2026-05-18",
"return": "2026-05-18",
"duration": 8,
"page_items": 80,
"nbre_items": 20,
"filter_value": "ebgtmshskfaemuteyujueotxs"
};
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.
Crée une nouvelle demande de permission.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/permission-requests" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"voluptatem\",
\"departure\": \"2026-05-18\",
\"return\": \"2106-11-22\",
\"duration\": 11,
\"status\": \"approved\",
\"user_approve_id\": 11
}"
const url = new URL(
"https://dev.ms-hotel.net/api/permission-requests"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "voluptatem",
"departure": "2026-05-18",
"return": "2106-11-22",
"duration": 11,
"status": "approved",
"user_approve_id": 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.
Affiche les détails d'une demande de permission spécifique.
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/permission-requests/est" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/permission-requests/est"
);
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/permission-requests/est 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.
Met à jour une demande de permission si elle est encore en attente.
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/permission-requests/nesciunt" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"tempora\",
\"departure\": \"2026-05-18\",
\"return\": \"2052-01-02\",
\"duration\": 64,
\"status\": \"approved\",
\"user_approve_id\": 5
}"
const url = new URL(
"https://dev.ms-hotel.net/api/permission-requests/nesciunt"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "tempora",
"departure": "2026-05-18",
"return": "2052-01-02",
"duration": 64,
"status": "approved",
"user_approve_id": 5
};
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 (soft delete) les presences spécifiées.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/permission-requests/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/permission-requests/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 les permission_requests archivés.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/permission-requests/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/permission-requests/restore"
);
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.
Départements
Gestion des départements
Lister les départements
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/departments/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 58,
\"nbre_items\": 15,
\"filter_value\": \"rwlzrud\",
\"start_date\": \"2026-05-18T11:12:12\",
\"end_date\": \"2026-05-18T11:12:12\",
\"responsible_id\": 5,
\"health_center_id\": 6,
\"trashed\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/departments/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 58,
"nbre_items": 15,
"filter_value": "rwlzrud",
"start_date": "2026-05-18T11:12:12",
"end_date": "2026-05-18T11:12:12",
"responsible_id": 5,
"health_center_id": 6,
"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://dev.ms-hotel.net/api/departments" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"responsible_id\": 20,
\"health_center_id\": 15,
\"name\": \"j\",
\"description\": \"Non vero ut asperiores.\",
\"phone\": \"bzibcnegzvevixfzs\",
\"email\": \"kuhic.frankie@example.com\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/departments"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"responsible_id": 20,
"health_center_id": 15,
"name": "j",
"description": "Non vero ut asperiores.",
"phone": "bzibcnegzvevixfzs",
"email": "kuhic.frankie@example.com"
};
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://dev.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://dev.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://dev.ms-hotel.net/api/departments/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"responsible_id\": 12,
\"health_center_id\": 12,
\"name\": \"amipvotsanarpwqnfeytaq\",
\"description\": \"Eius et at rerum ea.\",
\"phone\": \"g\",
\"email\": \"ines.tillman@example.net\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/departments/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"responsible_id": 12,
"health_center_id": 12,
"name": "amipvotsanarpwqnfeytaq",
"description": "Eius et at rerum ea.",
"phone": "g",
"email": "ines.tillman@example.net"
};
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://dev.ms-hotel.net/api/departments/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
12
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/departments/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 medical_books
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/departments/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/departments/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.
Endpoints
Lister les rendez-vous
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 58,
\"nbre_items\": 15,
\"filter_value\": \"pgqrg\",
\"patient_id\": 6,
\"doctor_id\": 1,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"date\": \"2026-05-18\",
\"status\": \"undone\",
\"trashed\": true
}"
const url = new URL(
"https://dev.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": 58,
"nbre_items": 15,
"filter_value": "pgqrg",
"patient_id": 6,
"doctor_id": 1,
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"date": "2026-05-18",
"status": "undone",
"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 rendez-vous
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/rendez-vous" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 3,
\"doctor_id\": 3,
\"date\": \"2026-05-18\",
\"hour\": \"et\",
\"description\": \"Debitis quia voluptatem aspernatur quos.\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/rendez-vous"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 3,
"doctor_id": 3,
"date": "2026-05-18",
"hour": "et",
"description": "Debitis quia voluptatem aspernatur quos."
};
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://dev.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://dev.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://dev.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\": 20,
\"doctor_id\": 4,
\"date\": \"2026-05-18\",
\"hour\": \"et\",
\"description\": \"Iure hic voluptatem ab est non quis.\",
\"status\": \"validated\"
}"
const url = new URL(
"https://dev.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": 20,
"doctor_id": 4,
"date": "2026-05-18",
"hour": "et",
"description": "Iure hic voluptatem ab est non quis.",
"status": "validated"
};
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://dev.ms-hotel.net/api/rendez-vous/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/rendez-vous/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 rendez_vous
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/rendez-vous/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
13
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/rendez-vous/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.
LISTE (filtrée)
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/expense-types/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 5,
\"nbre_items\": 48,
\"filter_value\": \"numquam\",
\"name\": \"quos\",
\"description\": \"Minima ut mollitia omnis nobis repudiandae aspernatur dicta.\",
\"trashed\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-types/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 5,
"nbre_items": 48,
"filter_value": "numquam",
"name": "quos",
"description": "Minima ut mollitia omnis nobis repudiandae aspernatur dicta.",
"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.
CREATE
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/expense-types" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"officia\",
\"description\": \"Rerum hic quo odio aut at quo porro.\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-types"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "officia",
"description": "Rerum hic quo odio aut at quo porro."
};
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.
SHOW
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/expense-types/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/expense-types/7"
);
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/expense-types/7 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.
UPDATE (tous les champs)
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/expense-types/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"iusto\",
\"description\": \"Fuga eos alias enim beatae in explicabo voluptatibus.\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-types/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "iusto",
"description": "Fuga eos alias enim beatae in explicabo voluptatibus."
};
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.
TRASH (soft delete multiple)
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/expense-types/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
5
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-types/trash"
);
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.
RESTORE
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/expense-types/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
17
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-types/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.
DELETE PERMANENT
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/expense-types/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-types/destroy"
);
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.
Lister les présences
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/presences/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 81,
\"nbre_items\": 65,
\"filter_value\": \"et\",
\"user_id\": 3,
\"health_center_id\": 4,
\"department_id\": 17,
\"date\": \"2026-05-18T11:12:13\",
\"start_date\": \"2026-05-18T11:12:13\",
\"end_date\": \"2078-07-31\",
\"type\": \"saepe\",
\"trashed\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/presences/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 81,
"nbre_items": 65,
"filter_value": "et",
"user_id": 3,
"health_center_id": 4,
"department_id": 17,
"date": "2026-05-18T11:12:13",
"start_date": "2026-05-18T11:12:13",
"end_date": "2078-07-31",
"type": "saepe",
"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 présence
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/presences" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 12,
\"health_center_id\": 15,
\"department_id\": 7,
\"date\": \"2026-05-18T11:12:13\",
\"hour\": \"11:12\",
\"arrivalTime\": \"11:12\",
\"departureTime\": \"11:12\",
\"type\": \"rerum\",
\"scanPerCourse\": 21,
\"reason\": \"atque\",
\"savingType\": \"perferendis\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/presences"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 12,
"health_center_id": 15,
"department_id": 7,
"date": "2026-05-18T11:12:13",
"hour": "11:12",
"arrivalTime": "11:12",
"departureTime": "11:12",
"type": "rerum",
"scanPerCourse": 21,
"reason": "atque",
"savingType": "perferendis"
};
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 présence
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/presences/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/presences/14"
);
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/presences/14 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 présence
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/presences/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 13,
\"health_center_id\": 13,
\"department_id\": 1,
\"date\": \"2026-05-18T11:12:13\",
\"hour\": \"11:12\",
\"arrivalTime\": \"11:12\",
\"departureTime\": \"11:12\",
\"type\": \"enim\",
\"scanPerCourse\": 0,
\"reason\": \"enim\",
\"savingType\": \"modi\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/presences/14"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 13,
"health_center_id": 13,
"department_id": 1,
"date": "2026-05-18T11:12:13",
"hour": "11:12",
"arrivalTime": "11:12",
"departureTime": "11:12",
"type": "enim",
"scanPerCourse": 0,
"reason": "enim",
"savingType": "modi"
};
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.
Trash présences
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/presences/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/presences/trash"
);
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.
Restore présences
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/presences/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
8
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/presences/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.
Supprimer définitivement des présences
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/presences/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
4
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/presences/destroy"
);
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.
POST api/dashboardfounder
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/dashboardfounder" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"health_center_id\": 2
}"
const url = new URL(
"https://dev.ms-hotel.net/api/dashboardfounder"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"health_center_id": 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.
Exécutions de planning de soins
Gestion des exécutions de planning de soins
POST api/care-schedule-executions/all
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/care-schedule-executions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 39,
\"nbre_items\": 20,
\"filter_value\": \"aypeubexghawdnhnvywds\",
\"care_schedule_id\": 6,
\"nurse_id\": 10,
\"status\": \"late\",
\"nursing_act_id\": 4,
\"date_from\": \"2026-05-18\",
\"date_to\": \"2026-05-18\",
\"trashed\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedule-executions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 39,
"nbre_items": 20,
"filter_value": "aypeubexghawdnhnvywds",
"care_schedule_id": 6,
"nurse_id": 10,
"status": "late",
"nursing_act_id": 4,
"date_from": "2026-05-18",
"date_to": "2026-05-18",
"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.
POST api/care-schedule-executions
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/care-schedule-executions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"care_schedule_id\": 15,
\"nurse_id\": 15,
\"scheduled_at\": \"2026-05-18T11:12:13\",
\"executed_at\": \"2026-05-18T11:12:13\",
\"status\": \"pending\",
\"delay_minutes\": 1,
\"observations\": \"at\",
\"nursing_act_id\": 18
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedule-executions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"care_schedule_id": 15,
"nurse_id": 15,
"scheduled_at": "2026-05-18T11:12:13",
"executed_at": "2026-05-18T11:12:13",
"status": "pending",
"delay_minutes": 1,
"observations": "at",
"nursing_act_id": 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.
GET api/care-schedule-executions/{care_schedule_execution}
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/care-schedule-executions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/care-schedule-executions/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/care-schedule-executions/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.
PUT api/care-schedule-executions/{care_schedule_execution}
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/care-schedule-executions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"care_schedule_id\": 14,
\"nurse_id\": 7,
\"scheduled_at\": \"2026-05-18T11:12:13\",
\"executed_at\": \"2026-05-18T11:12:13\",
\"status\": \"missed\",
\"delay_minutes\": 12,
\"observations\": \"ducimus\",
\"nursing_act_id\": 3
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedule-executions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"care_schedule_id": 14,
"nurse_id": 7,
"scheduled_at": "2026-05-18T11:12:13",
"executed_at": "2026-05-18T11:12:13",
"status": "missed",
"delay_minutes": 12,
"observations": "ducimus",
"nursing_act_id": 3
};
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.
POST api/care-schedule-executions/trash
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/care-schedule-executions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
13
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedule-executions/trash"
);
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.
POST api/care-schedule-executions/restore
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/care-schedule-executions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedule-executions/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.
Suppression définitive
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/care-schedule-executions/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedule-executions/destroy"
);
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.
Exécutions de prescriptions médicamenteuses
Gestion des exécutions de prescriptions médicamenteuses
POST api/medication-prescription-executions/all
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-prescription-executions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 13,
\"nbre_items\": 19,
\"filter_value\": \"mqsf\",
\"medication_prescription_id\": 12,
\"scheduled_at\": \"2026-05-18\",
\"execute_at\": \"2026-05-18\",
\"status\": \"missed\",
\"date_from\": \"2026-05-18\",
\"date_to\": \"2026-05-18\",
\"trashed\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescription-executions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 13,
"nbre_items": 19,
"filter_value": "mqsf",
"medication_prescription_id": 12,
"scheduled_at": "2026-05-18",
"execute_at": "2026-05-18",
"status": "missed",
"date_from": "2026-05-18",
"date_to": "2026-05-18",
"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.
POST api/medication-prescription-executions
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-prescription-executions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"medication_prescription_id\": 8,
\"scheduled_at\": \"2026-05-18T11:12:12\",
\"execute_at\": \"2026-05-18T11:12:12\",
\"status\": \"missed\",
\"delay_minutes\": 7
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescription-executions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"medication_prescription_id": 8,
"scheduled_at": "2026-05-18T11:12:12",
"execute_at": "2026-05-18T11:12:12",
"status": "missed",
"delay_minutes": 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.
GET api/medication-prescription-executions/{execution_id}
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/medication-prescription-executions/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescription-executions/12"
);
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/medication-prescription-executions/12 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.
PUT api/medication-prescription-executions/{execution_id}
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/medication-prescription-executions/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"medication_prescription_id\": 15,
\"scheduled_at\": \"2026-05-18T11:12:12\",
\"execute_at\": \"2026-05-18T11:12:12\",
\"status\": \"pending\",
\"delay_minutes\": 17
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescription-executions/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"medication_prescription_id": 15,
"scheduled_at": "2026-05-18T11:12:12",
"execute_at": "2026-05-18T11:12:12",
"status": "pending",
"delay_minutes": 17
};
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.
POST api/medication-prescription-executions/trash
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-prescription-executions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescription-executions/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.
POST api/medication-prescription-executions/restore
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-prescription-executions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescription-executions/restore"
);
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.
POST api/medication-prescription-executions/destroy
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-prescription-executions/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescription-executions/destroy"
);
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://dev.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\": 50,
\"nbre_items\": 3,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"filter_value\": \"eekburcetelztppclfhakvk\"
}"
const url = new URL(
"https://dev.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": 50,
"nbre_items": 3,
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"filter_value": "eekburcetelztppclfhakvk"
};
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://dev.ms-hotel.net/api/forum/categories" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"hvdxmshzvfw\",
\"description\": \"Voluptate culpa ut ex quia et itaque provident.\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/forum/categories"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "hvdxmshzvfw",
"description": "Voluptate culpa ut ex quia et itaque provident."
};
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://dev.ms-hotel.net/api/forum/categories/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/forum/categories/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/forum/categories/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 catégorie de forum
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/forum/categories/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"uzinticrlgjbby\",
\"description\": \"Omnis odio maxime ut reprehenderit et.\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/forum/categories/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "uzinticrlgjbby",
"description": "Omnis odio maxime ut reprehenderit 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.
Archiver plusieurs categories de forum
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/forum/categories/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/forum/categories/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 categories de forum
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/forum/categories/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
10
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/forum/categories/restore"
);
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.
Questions Gestion des questions de forum
Lister les questions de forum
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 50,
\"nbre_items\": 12,
\"filter_value\": \"kqufoosbfydb\",
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"forum_category_id\": 19,
\"user_id\": 13
}"
const url = new URL(
"https://dev.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": 50,
"nbre_items": 12,
"filter_value": "kqufoosbfydb",
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"forum_category_id": 19,
"user_id": 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.
Ajouter une question de forum
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 13,
\"title\": \"rutpwtcsxa\",
\"body\": \"fugiat\"
}"
const url = new URL(
"https://dev.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": 13,
"title": "rutpwtcsxa",
"body": "fugiat"
};
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://dev.ms-hotel.net/api/forum/questions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/forum/questions/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/forum/questions/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 question de forum
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/forum/questions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"forum_category_id\": 13,
\"title\": \"ux\",
\"body\": \"explicabo\",
\"is_resolved\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/forum/questions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"forum_category_id": 13,
"title": "ux",
"body": "explicabo",
"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://dev.ms-hotel.net/api/forum/questions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
12
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/forum/questions/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 questions de forum
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/forum/questions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/forum/questions/restore"
);
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.
Réponses Gestion des réponses aux questions de forum
Lister les réponses de forum
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 87,
\"nbre_items\": 17,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"filter_value\": \"nyxjrizagowuwgwgaoy\",
\"forum_category_id\": 3,
\"forum_question_id\": 17,
\"user_id\": 16
}"
const url = new URL(
"https://dev.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": 87,
"nbre_items": 17,
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"filter_value": "nyxjrizagowuwgwgaoy",
"forum_category_id": 3,
"forum_question_id": 17,
"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 réponse à une question de forum
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 18,
\"body\": \"consequatur\"
}"
const url = new URL(
"https://dev.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": 18,
"body": "consequatur"
};
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://dev.ms-hotel.net/api/forum/answers/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/forum/answers/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/forum/answers/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 réponse à une question de forum
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/forum/answers/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"forum_question_id\": 10,
\"body\": \"neque\",
\"is_accepted\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/forum/answers/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"forum_question_id": 10,
"body": "neque",
"is_accepted": true
};
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://dev.ms-hotel.net/api/forum/answers/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/forum/answers/trash"
);
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.
Restaurer plusieurs réponses aux questions de forum
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/forum/answers/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/forum/answers/restore"
);
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.
Gestion des Chambres
Liste des chambres avec filtres
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/rooms/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 59,
\"nbre_items\": 23,
\"name\": \"est\",
\"type\": \"harum\",
\"etage\": \"eum\",
\"min_price\": 83,
\"max_price\": 22,
\"trashed\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/rooms/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 59,
"nbre_items": 23,
"name": "est",
"type": "harum",
"etage": "eum",
"min_price": 83,
"max_price": 22,
"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.
Création d'une chambre
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/rooms" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"oolvgpnp\",
\"price\": 90,
\"number_beds\": 73,
\"type\": \"qbsdqosknaddhayapiqn\",
\"etage\": \"aoyduaprljyohizpimlkdyk\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/rooms"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "oolvgpnp",
"price": 90,
"number_beds": 73,
"type": "qbsdqosknaddhayapiqn",
"etage": "aoyduaprljyohizpimlkdyk"
};
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 chambre
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/rooms/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/rooms/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/rooms/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.
Mise à jour d'une chambre
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/rooms/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"udbchdnjbqmxd\",
\"price\": 68,
\"number_beds\": 65,
\"type\": \"jusjeqyjkf\",
\"etage\": \"xezglxylaafrubozeiedh\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/rooms/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "udbchdnjbqmxd",
"price": 68,
"number_beds": 65,
"type": "jusjeqyjkf",
"etage": "xezglxylaafrubozeiedh"
};
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.
Suppression logique (soft delete)
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/rooms/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/rooms/trash"
);
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.
Restauration
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/rooms/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
10
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/rooms/restore"
);
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.
Suppression définitive
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/rooms/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/rooms/destroy"
);
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.
Laboratoire
Gestion des demandes et résultats d'examens laboratoire
Lister les demandes d'examens
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-requests/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 20,
\"nbre_items\": 19,
\"filter_value\": \"ktmrfjuzannxrwjy\",
\"patient_id\": 15,
\"doctor_id\": 2,
\"technician_id\": 3,
\"status\": \"done\",
\"lab_exam_pack_id\": 6,
\"date_from\": \"2026-05-18\",
\"date_to\": \"2026-05-18\",
\"trashed\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-requests/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 20,
"nbre_items": 19,
"filter_value": "ktmrfjuzannxrwjy",
"patient_id": 15,
"doctor_id": 2,
"technician_id": 3,
"status": "done",
"lab_exam_pack_id": 6,
"date_from": "2026-05-18",
"date_to": "2026-05-18",
"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.
Créer une demande d'examen labo
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-requests" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 3,
\"doctor_id\": 20,
\"medical_page_id\": 4,
\"lab_exam_catalog_id\": 8,
\"lab_exam_pack_id\": 11,
\"exam_name\": \"fodklqycgdepfidjpfdfluyv\",
\"clinical_info\": \"fugiat\",
\"price\": 76,
\"requested_at\": \"2026-05-18T11:12:13\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-requests"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 3,
"doctor_id": 20,
"medical_page_id": 4,
"lab_exam_catalog_id": 8,
"lab_exam_pack_id": 11,
"exam_name": "fodklqycgdepfidjpfdfluyv",
"clinical_info": "fugiat",
"price": 76,
"requested_at": "2026-05-18T11:12: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.
Afficher une demande d'examen
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/lab-requests/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/lab-requests/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/lab-requests/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.
Mettre à jour le statut et les résultats d'un examen
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/lab-requests/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"ipsa\",
\"technician_id\": 19,
\"validator_id\": 7,
\"clinical_info\": \"non\",
\"sampled_at\": \"2026-05-18T11:12:13\",
\"result_at\": \"2026-05-18T11:12:13\",
\"validated_at\": \"2026-05-18T11:12:13\",
\"price\": 47,
\"results\": [
{
\"parameter_name\": \"facere\",
\"value\": \"magnam\",
\"unit\": \"minima\",
\"reference_range\": \"ipsum\",
\"is_abnormal\": true,
\"notes\": \"sit\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-requests/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "ipsa",
"technician_id": 19,
"validator_id": 7,
"clinical_info": "non",
"sampled_at": "2026-05-18T11:12:13",
"result_at": "2026-05-18T11:12:13",
"validated_at": "2026-05-18T11:12:13",
"price": 47,
"results": [
{
"parameter_name": "facere",
"value": "magnam",
"unit": "minima",
"reference_range": "ipsum",
"is_abnormal": true,
"notes": "sit"
}
]
};
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 des demandes labo
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-requests/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-requests/trash"
);
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.
Restaurer des demandes labo
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-requests/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-requests/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.
Lits
Gestion des lits
Lister les lits
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/beds/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 83,
\"nbre_items\": 17,
\"filter_value\": \"vz\",
\"idroom\": 14,
\"status\": \"free\",
\"trashed\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/beds/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 83,
"nbre_items": 17,
"filter_value": "vz",
"idroom": 14,
"status": "free",
"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 lit
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/beds" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idroom\": 20,
\"price\": 90,
\"name\": \"elyrgdzqbztvuj\",
\"type\": \"xvxtohdirrygjc\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/beds"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idroom": 20,
"price": 90,
"name": "elyrgdzqbztvuj",
"type": "xvxtohdirrygjc"
};
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 lit
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/beds/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/beds/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/beds/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 lit
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/beds/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idroom\": 10,
\"price\": 42,
\"name\": \"eonbehbhbqbymywrbjr\",
\"type\": \"yfshxtahfqyyhbvrmhkvn\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/beds/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idroom": 10,
"price": 42,
"name": "eonbehbhbqbymywrbjr",
"type": "yfshxtahfqyyhbvrmhkvn"
};
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 lits
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/beds/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
20
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/beds/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 lits
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/beds/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
4
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/beds/restore"
);
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.
Suppression définitive
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/beds/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
14
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/beds/destroy"
);
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.
Médicaments
Gestion des médicaments
Lister les médicaments
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medications/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 64,
\"nbre_items\": 19,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"filter_value\": \"nxtzmjcdfkwhw\",
\"name\": \"b\",
\"trashed\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medications/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 64,
"nbre_items": 19,
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"filter_value": "nxtzmjcdfkwhw",
"name": "b",
"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://dev.ms-hotel.net/api/medications" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ssrwllnelq\",
\"description\": \"Accusantium est modi similique est qui quasi quis doloremque.\",
\"photo\": \"soluta\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medications"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "ssrwllnelq",
"description": "Accusantium est modi similique est qui quasi quis doloremque.",
"photo": "soluta"
};
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://dev.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://dev.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://dev.ms-hotel.net/api/medications/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ufsofjsemx\",
\"description\": \"Exercitationem labore sint velit fuga rerum reprehenderit.\",
\"photo\": \"cupiditate\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medications/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "ufsofjsemx",
"description": "Exercitationem labore sint velit fuga rerum reprehenderit.",
"photo": "cupiditate"
};
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://dev.ms-hotel.net/api/medications/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
17
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medications/trash"
);
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.
Restaurer plusieurs médicaments
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medications/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medications/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.
Notes de frais / Expense Reports
Gestion des notes de frais
Afficher les notes de frais
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/expense-reports/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"paid\",
\"date\": \"2026-05-18\",
\"page_items\": 87,
\"nbre_items\": 16,
\"filter_value\": \"wrhjfhnvevaharsssa\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-reports/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "paid",
"date": "2026-05-18",
"page_items": 87,
"nbre_items": 16,
"filter_value": "wrhjfhnvevaharsssa"
};
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 note de frais spécifique
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/expense-reports/deserunt" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/expense-reports/deserunt"
);
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/expense-reports/deserunt 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.
Créer une note de frais
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/expense-reports" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"libelle\": \"odio\",
\"amount\": 49,
\"description\": \"Reiciendis qui aliquid nobis.\",
\"date\": \"2026-05-18\",
\"status\": \"pending_approval\",
\"idUserApprove\": 14
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-reports"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"libelle": "odio",
"amount": 49,
"description": "Reiciendis qui aliquid nobis.",
"date": "2026-05-18",
"status": "pending_approval",
"idUserApprove": 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.
Mettre à jour une note de frais
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/expense-reports/sint" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"libelle\": \"sed\",
\"amount\": 42,
\"description\": \"Est incidunt voluptate fuga ipsam magnam.\",
\"date\": \"2026-05-18\",
\"status\": \"paid\",
\"idUserApprove\": 16
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-reports/sint"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"libelle": "sed",
"amount": 42,
"description": "Est incidunt voluptate fuga ipsam magnam.",
"date": "2026-05-18",
"status": "paid",
"idUserApprove": 16
};
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 (soft delete) les notes de frais.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/expense-reports/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-reports/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 les notes de frais archivées.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/expense-reports/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-reports/restore"
);
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.
Supprimer définitivement les notes de frais spécifiées.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/expense-reports/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/expense-reports/destroy"
);
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.
Nourritures
Gestion des nourritures
Lister les nourritures
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/foods/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 25,
\"nbre_items\": 9,
\"filter_value\": \"eiarwttplqoaibuwtmxk\",
\"trashed\": false,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"name\": \"ninlomg\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/foods/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 25,
"nbre_items": 9,
"filter_value": "eiarwttplqoaibuwtmxk",
"trashed": false,
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"name": "ninlomg"
};
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://dev.ms-hotel.net/api/foods" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"gx\",
\"description\": \"Cumque distinctio eos sint molestias labore perspiciatis.\",
\"potassium_mg\": \"hepclqxvlgi\",
\"sodium_mg\": \"my\",
\"phosphorus_mg\": \"rrpq\",
\"photo\": \"vzlrjbodahsnzdi\",
\"food_alternatives\": [
{
\"alternative_id\": 3,
\"reason\": \"k\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/foods"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "gx",
"description": "Cumque distinctio eos sint molestias labore perspiciatis.",
"potassium_mg": "hepclqxvlgi",
"sodium_mg": "my",
"phosphorus_mg": "rrpq",
"photo": "vzlrjbodahsnzdi",
"food_alternatives": [
{
"alternative_id": 3,
"reason": "k"
}
]
};
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://dev.ms-hotel.net/api/foods/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/foods/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/foods/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 une nourriture
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/foods/13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"qdkxlcepg\",
\"description\": \"Ea tempore fugit ex est eius quas.\",
\"potassium_mg\": \"dxzvzezrvg\",
\"sodium_mg\": \"hmbvnspawtodzrkchiqskjky\",
\"phosphorus_mg\": \"jjntdfemirdclfkm\",
\"photo\": \"mooibioku\",
\"food_alternatives\": [
{
\"alternative_id\": 8,
\"reason\": \"dptsuacsizbhfztxtmxgvoi\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/foods/13"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "qdkxlcepg",
"description": "Ea tempore fugit ex est eius quas.",
"potassium_mg": "dxzvzezrvg",
"sodium_mg": "hmbvnspawtodzrkchiqskjky",
"phosphorus_mg": "jjntdfemirdclfkm",
"photo": "mooibioku",
"food_alternatives": [
{
"alternative_id": 8,
"reason": "dptsuacsizbhfztxtmxgvoi"
}
]
};
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://dev.ms-hotel.net/api/foods/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
5
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/foods/trash"
);
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.
Restaurer plusieurs nourritures
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/foods/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/foods/restore"
);
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.
Packs d'examens de laboratoire
Gestion des packs d'examens de laboratoire
POST api/lab-exam-packs/all
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-exam-packs/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 29,
\"nbre_items\": 18,
\"filter_value\": \"fnmlezyjvrwgqmqgcyajrc\",
\"is_active\": false,
\"trashed\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-packs/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 29,
"nbre_items": 18,
"filter_value": "fnmlezyjvrwgqmqgcyajrc",
"is_active": false,
"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.
POST api/lab-exam-packs
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-exam-packs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"bffnhtyqo\",
\"description\": \"Ea eaque laborum quia qui et et non.\",
\"price\": 58,
\"is_active\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-packs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "bffnhtyqo",
"description": "Ea eaque laborum quia qui et et non.",
"price": 58,
"is_active": 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.
GET api/lab-exam-packs/{labExamPack_id}
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/lab-exam-packs/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-packs/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/lab-exam-packs/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.
PUT api/lab-exam-packs/{labExamPack_id}
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/lab-exam-packs/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"bajbqxtleqldidt\",
\"description\": \"Quasi numquam excepturi impedit qui est est mollitia.\",
\"price\": 52,
\"is_active\": false,
\"exam_ids\": [
13
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-packs/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "bajbqxtleqldidt",
"description": "Quasi numquam excepturi impedit qui est est mollitia.",
"price": 52,
"is_active": false,
"exam_ids": [
13
]
};
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.
DELETE api/lab-exam-packs/{labExamPack_id}
requires authentication
Example request:
curl --request DELETE \
"https://dev.ms-hotel.net/api/lab-exam-packs/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-packs/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
POST api/lab-exam-packs/trash
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-exam-packs/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-packs/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.
POST api/lab-exam-packs/restore
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/lab-exam-packs/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/lab-exam-packs/restore"
);
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.
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://dev.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\": 29,
\"nbre_items\": 4,
\"filter_value\": \"dohvtjrveickpvjgkx\",
\"doctor_id\": 14,
\"medical_book_id\": 16,
\"department_id\": 20,
\"patient_id\": 19,
\"consultation_date\": \"2026-05-18\",
\"status\": \"completed\",
\"start_date\": \"2026-05-18T11:12:12\",
\"end_date\": \"2026-05-18T11:12:12\",
\"trashed\": false,
\"consultation_type\": \"emergency\",
\"disease_history\": \"voluptatum\",
\"current_treatments\": \"et\",
\"family_history\": \"quis\",
\"blood_pressure\": \"ipsum\",
\"heart_rate\": 9,
\"respiratory_rate\": 1,
\"temperature_c\": 268930.82,
\"spo2\": 9,
\"blood_glucose\": 37372,
\"weight_kg\": 65223.032,
\"height_cm\": 312512999.99,
\"bmi\": 4,
\"pain_score\": 14,
\"general_condition\": \"altered\",
\"general_condition_notes\": \"sit\",
\"physical_examination\": \"ut\",
\"hypothesis\": \"non\",
\"icd10_code\": \"eos\",
\"severity\": \"mild\",
\"discharge_decision\": \"home\",
\"next_appointment\": \"2026-05-18\",
\"additionnal_notes\": \"saepe\"
}"
const url = new URL(
"https://dev.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": 29,
"nbre_items": 4,
"filter_value": "dohvtjrveickpvjgkx",
"doctor_id": 14,
"medical_book_id": 16,
"department_id": 20,
"patient_id": 19,
"consultation_date": "2026-05-18",
"status": "completed",
"start_date": "2026-05-18T11:12:12",
"end_date": "2026-05-18T11:12:12",
"trashed": false,
"consultation_type": "emergency",
"disease_history": "voluptatum",
"current_treatments": "et",
"family_history": "quis",
"blood_pressure": "ipsum",
"heart_rate": 9,
"respiratory_rate": 1,
"temperature_c": 268930.82,
"spo2": 9,
"blood_glucose": 37372,
"weight_kg": 65223.032,
"height_cm": 312512999.99,
"bmi": 4,
"pain_score": 14,
"general_condition": "altered",
"general_condition_notes": "sit",
"physical_examination": "ut",
"hypothesis": "non",
"icd10_code": "eos",
"severity": "mild",
"discharge_decision": "home",
"next_appointment": "2026-05-18",
"additionnal_notes": "saepe"
};
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://dev.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\": 13,
\"department_id\": 8,
\"doctor_id\": 19,
\"consultation_date\": \"2026-05-18\",
\"reason_for_visit\": \"dolore\",
\"clinical_notes\": \"voluptatibus\",
\"diagnosis\": \"iure\",
\"free_notes\": \"ullam\",
\"status\": \"cancelled\",
\"consultation_type\": \"follow_up\",
\"disease_history\": \"voluptatibus\",
\"current_treatments\": \"nesciunt\",
\"family_history\": \"ex\",
\"blood_pressure\": \"dolorum\",
\"heart_rate\": 19,
\"respiratory_rate\": 7,
\"temperature_c\": 661512.2732758,
\"spo2\": 16,
\"blood_glucose\": 245.592646952,
\"weight_kg\": 52.700114,
\"height_cm\": 65.531,
\"bmi\": 1995327.8,
\"pain_score\": 1,
\"general_condition\": \"critical\",
\"general_condition_notes\": \"facilis\",
\"physical_examination\": \"itaque\",
\"hypothesis\": \"ducimus\",
\"icd10_code\": \"eveniet\",
\"severity\": \"critical\",
\"discharge_decision\": \"hospitalized\",
\"next_appointment\": \"2026-05-18\",
\"additionnal_notes\": \"odit\"
}"
const url = new URL(
"https://dev.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": 13,
"department_id": 8,
"doctor_id": 19,
"consultation_date": "2026-05-18",
"reason_for_visit": "dolore",
"clinical_notes": "voluptatibus",
"diagnosis": "iure",
"free_notes": "ullam",
"status": "cancelled",
"consultation_type": "follow_up",
"disease_history": "voluptatibus",
"current_treatments": "nesciunt",
"family_history": "ex",
"blood_pressure": "dolorum",
"heart_rate": 19,
"respiratory_rate": 7,
"temperature_c": 661512.2732758,
"spo2": 16,
"blood_glucose": 245.592646952,
"weight_kg": 52.700114,
"height_cm": 65.531,
"bmi": 1995327.8,
"pain_score": 1,
"general_condition": "critical",
"general_condition_notes": "facilis",
"physical_examination": "itaque",
"hypothesis": "ducimus",
"icd10_code": "eveniet",
"severity": "critical",
"discharge_decision": "hospitalized",
"next_appointment": "2026-05-18",
"additionnal_notes": "odit"
};
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://dev.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://dev.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://dev.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\": 1,
\"department_id\": 14,
\"doctor_id\": 12,
\"consultation_date\": \"2026-05-18\",
\"reason_for_visit\": \"dicta\",
\"clinical_notes\": \"velit\",
\"diagnosis\": \"sunt\",
\"free_notes\": \"qui\",
\"recommendations\": \"ut\",
\"status\": \"pending\",
\"consultation_type\": \"emergency\",
\"disease_history\": \"itaque\",
\"current_treatments\": \"at\",
\"family_history\": \"animi\",
\"blood_pressure\": \"toxfwvxqhk\",
\"heart_rate\": 15,
\"respiratory_rate\": 19,
\"temperature_c\": 0.32102,
\"spo2\": 14,
\"blood_glucose\": 54.59219382,
\"weight_kg\": 9112.4,
\"height_cm\": 99821.58634019,
\"bmi\": 3753395.9479,
\"pain_score\": 6,
\"general_condition\": \"critical\",
\"general_condition_notes\": \"et\",
\"physical_examination\": \"aut\",
\"hypothesis\": \"voluptas\",
\"icd10_code\": \"in\",
\"severity\": \"mild\",
\"discharge_decision\": \"home\",
\"next_appointment\": \"2026-05-18\",
\"additionnal_notes\": \"et\"
}"
const url = new URL(
"https://dev.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": 1,
"department_id": 14,
"doctor_id": 12,
"consultation_date": "2026-05-18",
"reason_for_visit": "dicta",
"clinical_notes": "velit",
"diagnosis": "sunt",
"free_notes": "qui",
"recommendations": "ut",
"status": "pending",
"consultation_type": "emergency",
"disease_history": "itaque",
"current_treatments": "at",
"family_history": "animi",
"blood_pressure": "toxfwvxqhk",
"heart_rate": 15,
"respiratory_rate": 19,
"temperature_c": 0.32102,
"spo2": 14,
"blood_glucose": 54.59219382,
"weight_kg": 9112.4,
"height_cm": 99821.58634019,
"bmi": 3753395.9479,
"pain_score": 6,
"general_condition": "critical",
"general_condition_notes": "et",
"physical_examination": "aut",
"hypothesis": "voluptas",
"icd10_code": "in",
"severity": "mild",
"discharge_decision": "home",
"next_appointment": "2026-05-18",
"additionnal_notes": "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.
Archiver plusieurs medical_pages
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medical-pages/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medical-pages/trash"
);
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.
Restaurer plusieurs medical_pages
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medical-pages/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medical-pages/restore"
);
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.
Permissions
Gestion des permissions
Afficher la liste des permissions
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/permissions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 72,
\"nbre_items\": 15,
\"filter_value\": \"asperiores\",
\"ressource\": \"voluptas\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/permissions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 72,
"nbre_items": 15,
"filter_value": "asperiores",
"ressource": "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.
POST api/permissions
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/permissions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"permissions\": [
{
\"name\": \"exercitationem\",
\"description\": \"Earum recusandae et est illo.\",
\"ressource\": \"beatae\",
\"code\": \"qui\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/permissions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"permissions": [
{
"name": "exercitationem",
"description": "Earum recusandae et est illo.",
"ressource": "beatae",
"code": "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 une permission spécifique
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/permissions/maiores" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/permissions/maiores"
);
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/maiores 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://dev.ms-hotel.net/api/permissions/nisi" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"nobis\",
\"permissions\": [
{
\"description\": \"Debitis nihil fugiat ea eius asperiores et.\",
\"ressource\": \"libero\",
\"code\": \"praesentium\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/permissions/nisi"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "nobis",
"permissions": [
{
"description": "Debitis nihil fugiat ea eius asperiores et.",
"ressource": "libero",
"code": "praesentium"
}
]
};
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.
Pharmacie — Lots & Stock
POST api/medication-batches/all
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-batches/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 25,
\"nbre_items\": 9,
\"filter_value\": \"uadbvouzpunqlnkhnpteoyf\",
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"medication_id\": 17,
\"expiry_alert\": true,
\"trashed\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-batches/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 25,
"nbre_items": 9,
"filter_value": "uadbvouzpunqlnkhnpteoyf",
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"medication_id": 17,
"expiry_alert": true,
"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.
POST api/medication-batches
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-batches" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"medication_id\": 1,
\"batch_number\": \"cyqsvtmpkzpyffkvggp\",
\"expiry_date\": \"2026-05-18\",
\"quantity_in\": 65,
\"purchase_price\": 1,
\"supplier\": \"lw\",
\"received_date\": \"2026-05-18\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-batches"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"medication_id": 1,
"batch_number": "cyqsvtmpkzpyffkvggp",
"expiry_date": "2026-05-18",
"quantity_in": 65,
"purchase_price": 1,
"supplier": "lw",
"received_date": "2026-05-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.
GET api/medication-batches/{medication_batch}
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/medication-batches/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/medication-batches/16"
);
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/medication-batches/16 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.
PUT api/medication-batches/{medication_batch}
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/medication-batches/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"batch_number\": \"eovumbdivu\",
\"expiry_date\": \"2026-05-18\",
\"quantity_in\": 32,
\"purchase_price\": 87,
\"supplier\": \"yhclrpmppoxd\",
\"received_date\": \"2026-05-18\",
\"expiry_alert\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-batches/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"batch_number": "eovumbdivu",
"expiry_date": "2026-05-18",
"quantity_in": 32,
"purchase_price": 87,
"supplier": "yhclrpmppoxd",
"received_date": "2026-05-18",
"expiry_alert": 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.
POST api/medication-batches/trash
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-batches/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
10
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-batches/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.
POST api/medication-batches/restore
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-batches/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-batches/restore"
);
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.
Planification des soins
Gestion des plannings de soins infirmiers
Lister les plannings de soins
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/care-schedules/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 16,
\"nbre_items\": 8,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"filter_value\": \"pyulmhlvjoxvexsr\",
\"is_active\": true,
\"trashed\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedules/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 16,
"nbre_items": 8,
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"filter_value": "pyulmhlvjoxvexsr",
"is_active": true,
"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 planning de soin
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/care-schedules" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": \"sed\",
\"admission_id\": 13,
\"medical_page_id\": \"voluptatem\",
\"nursing_act_catalog_id\": \"at\",
\"act_name\": \"mqtlmobmanjsqzukfjdaw\",
\"dosage\": \"yyldzldpzcgqykqrnmpkroxah\",
\"scheduled_time\": \"11:12\",
\"frequency\": \"iuwxds\",
\"frequence_number\": 5579516.7983,
\"start_date\": \"2026-05-18T11:12:12\",
\"end_date\": \"2026-05-18T11:12:12\",
\"is_active\": true,
\"notes\": \"cum\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedules"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": "sed",
"admission_id": 13,
"medical_page_id": "voluptatem",
"nursing_act_catalog_id": "at",
"act_name": "mqtlmobmanjsqzukfjdaw",
"dosage": "yyldzldpzcgqykqrnmpkroxah",
"scheduled_time": "11:12",
"frequency": "iuwxds",
"frequence_number": 5579516.7983,
"start_date": "2026-05-18T11:12:12",
"end_date": "2026-05-18T11:12:12",
"is_active": true,
"notes": "cum"
};
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 planning de soin
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/care-schedules/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/care-schedules/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/care-schedules/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 planning de soin
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/care-schedules/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"admission_id\": 6,
\"act_name\": \"ximdpeqtxwd\",
\"dosage\": \"kwqj\",
\"scheduled_time\": \"11:12\",
\"frequency\": \"vtf\",
\"frequence_number\": 23244,
\"start_date\": \"2026-05-18T11:12:12\",
\"end_date\": \"2099-03-05\",
\"is_active\": true,
\"notes\": \"at\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedules/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"admission_id": 6,
"act_name": "ximdpeqtxwd",
"dosage": "kwqj",
"scheduled_time": "11:12",
"frequency": "vtf",
"frequence_number": 23244,
"start_date": "2026-05-18T11:12:12",
"end_date": "2099-03-05",
"is_active": true,
"notes": "at"
};
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 plannings de soins
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/care-schedules/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
14
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedules/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 plannings de soins
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/care-schedules/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
14
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedules/restore"
);
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.
Suppression définitive
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/care-schedules/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
14
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/care-schedules/destroy"
);
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.
Prescriptions
Gestion des prescriptions
Lister les prescriptions
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/prescriptions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 14,
\"nbre_items\": 14,
\"filter_value\": \"jzhjgweqksd\",
\"patient_id\": 11,
\"medical_page_id\": 18,
\"status\": \"cancelled\",
\"start_date\": \"2026-05-18T11:12:12\",
\"end_date\": \"2026-05-18T11:12:12\",
\"trashed\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/prescriptions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 14,
"nbre_items": 14,
"filter_value": "jzhjgweqksd",
"patient_id": 11,
"medical_page_id": 18,
"status": "cancelled",
"start_date": "2026-05-18T11:12:12",
"end_date": "2026-05-18T11:12:12",
"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://dev.ms-hotel.net/api/prescriptions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 14,
\"medical_page_id\": 17,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2029-02-07\",
\"frequency\": \"aliquid\",
\"dosage\": \"deleniti\",
\"description\": \"Earum et est sunt necessitatibus.\",
\"status\": \"pending\",
\"medications\": [
{
\"medication_id\": 18,
\"dosage\": 52,
\"frequency\": \"distinctio\",
\"description\": \"Ipsa sint eos veniam totam.\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/prescriptions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 14,
"medical_page_id": 17,
"start_date": "2026-05-18",
"end_date": "2029-02-07",
"frequency": "aliquid",
"dosage": "deleniti",
"description": "Earum et est sunt necessitatibus.",
"status": "pending",
"medications": [
{
"medication_id": 18,
"dosage": 52,
"frequency": "distinctio",
"description": "Ipsa sint eos veniam totam."
}
]
};
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://dev.ms-hotel.net/api/prescriptions/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/prescriptions/3"
);
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/3 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://dev.ms-hotel.net/api/prescriptions/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 5,
\"medical_page_id\": 18,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2053-04-11\",
\"frequency\": \"magni\",
\"dosage\": \"ut\",
\"description\": \"Nesciunt adipisci debitis quod consequuntur sint.\",
\"status\": \"pending\",
\"medications\": [
{
\"medication_id\": 17,
\"dosage\": 21,
\"frequency\": \"molestiae\",
\"description\": \"Quia non qui odit aut.\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/prescriptions/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 5,
"medical_page_id": 18,
"start_date": "2026-05-18",
"end_date": "2053-04-11",
"frequency": "magni",
"dosage": "ut",
"description": "Nesciunt adipisci debitis quod consequuntur sint.",
"status": "pending",
"medications": [
{
"medication_id": 17,
"dosage": 21,
"frequency": "molestiae",
"description": "Quia non qui odit aut."
}
]
};
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://dev.ms-hotel.net/api/prescriptions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/prescriptions/trash"
);
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.
Restaurer plusieurs prescriptions
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/prescriptions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
12
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/prescriptions/restore"
);
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.
Prescriptions médicamenteuses
Gestion des prescriptions médicamenteuses
Lister les prescriptions médicamenteuses
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-prescriptions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 38,
\"nbre_items\": 45,
\"filter_value\": \"aut\",
\"prescription_id\": 20,
\"medication_id\": 15,
\"trashed\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescriptions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 38,
"nbre_items": 45,
"filter_value": "aut",
"prescription_id": 20,
"medication_id": 15,
"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.
Ajout d'une prescription médicamenteuse
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-prescriptions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"medication_id\": \"nulla\",
\"prescription_id\": \"consectetur\",
\"frequency\": \"dvktpqterwzkmqfhxlgtp\",
\"frequence_number\": 110774.403614,
\"scheduled_time\": \"11:12\",
\"dosage\": \"ahrxvqmkarwwygdl\",
\"duration_days\": 47,
\"description\": \"Dolores laboriosam aut et quidem eum sed facere.\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescriptions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"medication_id": "nulla",
"prescription_id": "consectetur",
"frequency": "dvktpqterwzkmqfhxlgtp",
"frequence_number": 110774.403614,
"scheduled_time": "11:12",
"dosage": "ahrxvqmkarwwygdl",
"duration_days": 47,
"description": "Dolores laboriosam aut et quidem eum sed facere."
};
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 prescription médicamenteuse
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/medication-prescriptions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/medication-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/medication-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 médicamenteuse
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/medication-prescriptions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"frequency\": \"yfwblocrm\",
\"frequence_number\": 657966601.7653027,
\"scheduled_time\": \"11:12\",
\"dosage\": \"t\",
\"duration_days\": 1,
\"description\": \"Ducimus id velit sit fugit aut ratione doloribus aliquid.\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescriptions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"frequency": "yfwblocrm",
"frequence_number": 657966601.7653027,
"scheduled_time": "11:12",
"dosage": "t",
"duration_days": 1,
"description": "Ducimus id velit sit fugit aut ratione doloribus aliquid."
};
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 médicamenteuses
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-prescriptions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
12
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescriptions/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 prescriptions médicamenteuses
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-prescriptions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
8
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescriptions/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.
Suppression définitive
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medication-prescriptions/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
5
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medication-prescriptions/destroy"
);
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.
Prises de Médicaments
Gestion des prises de médicaments
Lister les prises de médicaments
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 23,
\"nbre_items\": 16,
\"filter_value\": \"fq\",
\"trashed\": false,
\"prescription_id\": 14,
\"medication_id\": 9,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2104-09-25\"
}"
const url = new URL(
"https://dev.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": 23,
"nbre_items": 16,
"filter_value": "fq",
"trashed": false,
"prescription_id": 14,
"medication_id": 9,
"start_date": "2026-05-18",
"end_date": "2104-09-25"
};
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://dev.ms-hotel.net/api/medications-intakes" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"prescription_id\": 10,
\"medication_id\": 7,
\"is_taken\": true,
\"date_time\": \"2026-05-18 11:12\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medications-intakes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"prescription_id": 10,
"medication_id": 7,
"is_taken": true,
"date_time": "2026-05-18 11: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.
Afficher une prise de médicament
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/medications-intakes/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/medications-intakes/15"
);
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/15 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://dev.ms-hotel.net/api/medications-intakes/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"prescription_id\": 3,
\"medication_id\": 4,
\"is_taken\": false,
\"date_time\": \"2026-05-18 11:12\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medications-intakes/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"prescription_id": 3,
"medication_id": 4,
"is_taken": false,
"date_time": "2026-05-18 11:12"
};
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://dev.ms-hotel.net/api/medications-intakes/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
8
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medications-intakes/trash"
);
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.
Restaurer plusieurs prises de médicaments
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/medications-intakes/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
17
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/medications-intakes/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.
Rapports journalier / Daily reports
Gestion des rapports journaliers
Afficher la liste des rapports journaliers filtrés.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/daily-reports/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"pageItems\": 9,
\"nbreItems\": 57,
\"idUser\": 5,
\"date\": \"2026-05-18T11:12:13\",
\"date_start\": \"2026-05-18T11:12:13\",
\"date_end\": \"2047-07-28\",
\"filter_value\": \"qcsuvcjox\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/daily-reports/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"pageItems": 9,
"nbreItems": 57,
"idUser": 5,
"date": "2026-05-18T11:12:13",
"date_start": "2026-05-18T11:12:13",
"date_end": "2047-07-28",
"filter_value": "qcsuvcjox"
};
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 nouveau rapport journalier.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/daily-reports" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 9,
\"name\": \"ypgmiagzuqmozvenspibicgz\",
\"date\": \"2026-05-18T11:12:13\",
\"description\": \"Nam sint et et voluptatibus similique veniam.\",
\"comments\": \"est\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/daily-reports"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 9,
"name": "ypgmiagzuqmozvenspibicgz",
"date": "2026-05-18T11:12:13",
"description": "Nam sint et et voluptatibus similique veniam.",
"comments": "est"
};
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 rapport journalier spécifique.
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/daily-reports/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/daily-reports/15"
);
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/daily-reports/15 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.
Update the specified resource in storage.
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/daily-reports/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 7,
\"name\": \"zpypxodaws\",
\"date\": \"2026-05-18T11:12:13\",
\"description\": \"Culpa cupiditate fugiat consequatur enim fuga.\",
\"comments\": \"est\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/daily-reports/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 7,
"name": "zpypxodaws",
"date": "2026-05-18T11:12:13",
"description": "Culpa cupiditate fugiat consequatur enim fuga.",
"comments": "est"
};
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.
Archivage multiple des rapports journaliers
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/daily-reports/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/daily-reports/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.
Restauration multiple des rapports journaliers
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/daily-reports/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/daily-reports/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.
Fonction de suppression définitive multiple des rapports journaliers
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/daily-reports/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/daily-reports/destroy"
);
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.
Recettes
Gestion des recettes
Lister les recettes
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/recipes/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 73,
\"nbre_items\": 16,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"filter_value\": \"wtygtnymbchbwqhj\",
\"is_low_potassium\": false,
\"is_low_sodium\": true
}"
const url = new URL(
"https://dev.ms-hotel.net/api/recipes/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 73,
"nbre_items": 16,
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"filter_value": "wtygtnymbchbwqhj",
"is_low_potassium": false,
"is_low_sodium": 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 recette
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/recipes" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ipsum\",
\"description\": \"Nesciunt porro eaque qui numquam qui autem reprehenderit.\",
\"instructions\": \"nostrum\",
\"preparation_time\": 9,
\"servings\": 14,
\"is_low_potassium\": true,
\"is_low_sodium\": true,
\"calories\": 19,
\"sodium_mg\": 1,
\"potassium_mg\": 19,
\"photo\": \"vel\",
\"foods\": [
{
\"food_id\": 15,
\"quantity\": \"blanditiis\",
\"description\": \"Odit ullam ullam error et.\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/recipes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "ipsum",
"description": "Nesciunt porro eaque qui numquam qui autem reprehenderit.",
"instructions": "nostrum",
"preparation_time": 9,
"servings": 14,
"is_low_potassium": true,
"is_low_sodium": true,
"calories": 19,
"sodium_mg": 1,
"potassium_mg": 19,
"photo": "vel",
"foods": [
{
"food_id": 15,
"quantity": "blanditiis",
"description": "Odit ullam ullam error 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 les infos d'une recette
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/recipes/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/recipes/16"
);
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/16 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://dev.ms-hotel.net/api/recipes/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"blanditiis\",
\"description\": \"Incidunt dolorum et perferendis sint.\",
\"instructions\": \"at\",
\"preparation_time\": \"sapiente\",
\"servings\": \"excepturi\",
\"is_low_potassium\": false,
\"is_low_sodium\": false,
\"calories\": \"modi\",
\"sodium_mg\": \"minus\",
\"potassium_mg\": \"pariatur\",
\"photo\": \"quo\",
\"foods\": [
{
\"food_id\": 5,
\"quantity\": \"qui\",
\"description\": \"Et qui reiciendis sint et.\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/recipes/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "blanditiis",
"description": "Incidunt dolorum et perferendis sint.",
"instructions": "at",
"preparation_time": "sapiente",
"servings": "excepturi",
"is_low_potassium": false,
"is_low_sodium": false,
"calories": "modi",
"sodium_mg": "minus",
"potassium_mg": "pariatur",
"photo": "quo",
"foods": [
{
"food_id": 5,
"quantity": "qui",
"description": "Et qui reiciendis sint 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.
Archiver plusieurs recettes
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/recipes/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/recipes/trash"
);
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.
Restaurer plusieurs recettes
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/recipes/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/recipes/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.
Retenue sur salaire / Salary deduction
Gestion des retenus sur salaire
Afficher la liste filtrée des retenues sur salaire
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/salary-deductions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 10,
\"user_approve_id\": 20,
\"date\": \"2026-05-18\",
\"status\": \"rejected\",
\"page_items\": 30,
\"trashed\": true,
\"nbre_items\": 14,
\"filter_value\": \"agqjsrfj\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/salary-deductions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 10,
"user_approve_id": 20,
"date": "2026-05-18",
"status": "rejected",
"page_items": 30,
"trashed": true,
"nbre_items": 14,
"filter_value": "agqjsrfj"
};
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.
Show the form for creating a new resource.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/salary-deductions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"salary_deductions\": [
{
\"user_id\": 14,
\"user_approve_id\": 15,
\"reason\": \"quidem\",
\"amount\": 49,
\"date\": \"2026-05-18\",
\"status\": \"in_progress\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/salary-deductions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"salary_deductions": [
{
"user_id": 14,
"user_approve_id": 15,
"reason": "quidem",
"amount": 49,
"date": "2026-05-18",
"status": "in_progress"
}
]
};
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 retenue sur salaire spécifique
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/salary-deductions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/salary-deductions/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/salary-deductions/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.
Mettre à jour une retenue sur salaire spécifique
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/salary-deductions/13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 12,
\"user_approve_id\": 17,
\"reason\": \"eaque\",
\"amount\": 56,
\"date\": \"2026-05-18\",
\"status\": \"rejected\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/salary-deductions/13"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 12,
"user_approve_id": 17,
"reason": "eaque",
"amount": 56,
"date": "2026-05-18",
"status": "rejected"
};
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 (soft delete) les retenues sur salaire spécifiées.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/salary-deductions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
12
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/salary-deductions/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 les feedbacks archivés.
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/salary-deductions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/salary-deductions/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.
Rôles
Gestion des rôles
Lister les roles
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/roles/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 28,
\"nbre_items\": 17,
\"filter_value\": \"illum\",
\"types\": [
\"rerum\"
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/roles/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 28,
"nbre_items": 17,
"filter_value": "illum",
"types": [
"rerum"
]
};
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://dev.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\": \"Unde nesciunt architecto maiores.\",
\"type\": \"culpa\"
}"
const url = new URL(
"https://dev.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": "Unde nesciunt architecto maiores.",
"type": "culpa"
};
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://dev.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://dev.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://dev.ms-hotel.net/api/roles/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"voluptas\",
\"permissions\": [
18
],
\"description\": \"Optio recusandae commodi impedit dolor dolores inventore blanditiis.\",
\"type\": \"qui\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/roles/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "voluptas",
"permissions": [
18
],
"description": "Optio recusandae commodi impedit dolor dolores inventore blanditiis.",
"type": "qui"
};
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.
Sanctions
Gestion des sanctions utilisateurs
List sanctions
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/sanctions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 7,
\"nbre_items\": 10,
\"filter_value\": \"doloremque\",
\"trashed\": true,
\"user_id\": 2,
\"type\": \"rem\",
\"created_by\": 2
}"
const url = new URL(
"https://dev.ms-hotel.net/api/sanctions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 7,
"nbre_items": 10,
"filter_value": "doloremque",
"trashed": true,
"user_id": 2,
"type": "rem",
"created_by": 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.
Show sanction
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/sanctions/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/sanctions/2"
);
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/sanctions/2 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.
Create sanctions
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/sanctions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"sanctions\": [
{
\"user_id\": 4,
\"type\": \"alias\",
\"reasons\": \"dolorem\",
\"description\": \"Aut officiis facilis nobis voluptates magni.\"
}
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/sanctions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sanctions": [
{
"user_id": 4,
"type": "alias",
"reasons": "dolorem",
"description": "Aut officiis facilis nobis voluptates magni."
}
]
};
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.
Update sanction
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/sanctions/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 5,
\"type\": \"iusto\",
\"reasons\": \"modi\",
\"description\": \"Quo aut eum labore quos.\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/sanctions/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 5,
"type": "iusto",
"reasons": "modi",
"description": "Quo aut eum labore quos."
};
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.
Trash
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/sanctions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/sanctions/trash"
);
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.
Restore
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/sanctions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/sanctions/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.
Destroy permanently
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/sanctions/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/sanctions/destroy"
);
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.
Soins Infirmiers
Gestion des actes infirmiers MS-Care
POST api/nursing-acts/all
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/nursing-acts/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 68,
\"nbre_items\": 20,
\"filter_value\": \"qleuzkgxmsbupblhqnjxxg\",
\"patient_id\": 14,
\"nurse_id\": 5,
\"medical_page_id\": 17,
\"act_type\": \"enim\",
\"external_prescription_ref\": \"non\",
\"nursing_act_origin\": \"id\",
\"date_from\": \"2026-05-18\",
\"date_to\": \"2026-05-18\",
\"trashed\": false
}"
const url = new URL(
"https://dev.ms-hotel.net/api/nursing-acts/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 68,
"nbre_items": 20,
"filter_value": "qleuzkgxmsbupblhqnjxxg",
"patient_id": 14,
"nurse_id": 5,
"medical_page_id": 17,
"act_type": "enim",
"external_prescription_ref": "non",
"nursing_act_origin": "id",
"date_from": "2026-05-18",
"date_to": "2026-05-18",
"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.
POST api/nursing-acts
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/nursing-acts" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 20,
\"nurse_id\": 19,
\"medical_page_id\": 7,
\"nursing_act_catalog_id\": 9,
\"patient_check_up_id\": 8,
\"act_name\": \"iqgdtjdeuoeaa\",
\"act_type\": \"dolorum\",
\"reason\": \"dolorum\",
\"acts_performed\": \"voluptas\",
\"patient_evolution\": \"totam\",
\"observations\": \"et\",
\"incidents\": \"sed\",
\"external_prescription_ref\": \"provident\",
\"nursing_act_origin\": \"provident\",
\"price\": 73,
\"date\": \"2026-05-18T11:12:13\",
\"hour\": \"11:12\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/nursing-acts"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 20,
"nurse_id": 19,
"medical_page_id": 7,
"nursing_act_catalog_id": 9,
"patient_check_up_id": 8,
"act_name": "iqgdtjdeuoeaa",
"act_type": "dolorum",
"reason": "dolorum",
"acts_performed": "voluptas",
"patient_evolution": "totam",
"observations": "et",
"incidents": "sed",
"external_prescription_ref": "provident",
"nursing_act_origin": "provident",
"price": 73,
"date": "2026-05-18T11:12:13",
"hour": "11: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.
GET api/nursing-acts/{nursing_act}
requires authentication
Example request:
curl --request GET \
--get "https://dev.ms-hotel.net/api/nursing-acts/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/nursing-acts/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/nursing-acts/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.
PUT api/nursing-acts/{nursing_act}
requires authentication
Example request:
curl --request PUT \
"https://dev.ms-hotel.net/api/nursing-acts/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 2,
\"nurse_id\": 17,
\"medical_page_id\": 14,
\"nursing_act_catalog_id\": 9,
\"patient_check_up_id\": 17,
\"act_name\": \"cbjurzar\",
\"act_type\": \"nostrum\",
\"reason\": \"repellat\",
\"acts_performed\": \"dolores\",
\"patient_evolution\": \"est\",
\"observations\": \"odio\",
\"incidents\": \"accusantium\",
\"external_prescription_ref\": \"qui\",
\"nursing_act_origin\": \"mollitia\",
\"price\": 66,
\"date\": \"2026-05-18T11:12:13\",
\"hour\": \"11:12\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/nursing-acts/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 2,
"nurse_id": 17,
"medical_page_id": 14,
"nursing_act_catalog_id": 9,
"patient_check_up_id": 17,
"act_name": "cbjurzar",
"act_type": "nostrum",
"reason": "repellat",
"acts_performed": "dolores",
"patient_evolution": "est",
"observations": "odio",
"incidents": "accusantium",
"external_prescription_ref": "qui",
"nursing_act_origin": "mollitia",
"price": 66,
"date": "2026-05-18T11:12:13",
"hour": "11:12"
};
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.
POST api/nursing-acts/trash
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/nursing-acts/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/nursing-acts/trash"
);
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.
POST api/nursing-acts/restore
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/nursing-acts/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/nursing-acts/restore"
);
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.
Séances de dialyse
Gestion des séances de dialyse
Lister les séances de dialyse
requires authentication
Example request:
curl --request POST \
"https://dev.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\": 19,
\"nbre_items\": 19,
\"filter_value\": \"ijzlzioddcnilvcsuctaed\",
\"trashed\": false,
\"patient_id\": 1,
\"doctor_id\": 10,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2091-08-19\"
}"
const url = new URL(
"https://dev.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": 19,
"nbre_items": 19,
"filter_value": "ijzlzioddcnilvcsuctaed",
"trashed": false,
"patient_id": 1,
"doctor_id": 10,
"start_date": "2026-05-18",
"end_date": "2091-08-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.
Ajouter une séance de dialyse
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/dialysis-sessions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 9,
\"doctor_id\": 12,
\"session_start\": \"ut\",
\"session_end\": \"eos\",
\"weight_before\": \"quae\",
\"weight_after\": \"rerum\",
\"fluid_removed\": \"aperiam\",
\"blood_pressure_post\": \"consequuntur\",
\"side_effects\": \"sed\",
\"description\": \"Possimus quidem voluptatem et repudiandae et a sit placeat.\",
\"observation\": \"sed\",
\"status\": \"cancelled\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/dialysis-sessions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 9,
"doctor_id": 12,
"session_start": "ut",
"session_end": "eos",
"weight_before": "quae",
"weight_after": "rerum",
"fluid_removed": "aperiam",
"blood_pressure_post": "consequuntur",
"side_effects": "sed",
"description": "Possimus quidem voluptatem et repudiandae et a sit placeat.",
"observation": "sed",
"status": "cancelled"
};
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://dev.ms-hotel.net/api/dialysis-sessions/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://dev.ms-hotel.net/api/dialysis-sessions/15"
);
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/15 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://dev.ms-hotel.net/api/dialysis-sessions/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"patient_id\": 18,
\"doctor_id\": 18,
\"session_start\": \"soluta\",
\"session_end\": \"vel\",
\"blood_pressure_post\": \"similique\",
\"side_effects\": \"unde\",
\"status\": \"done\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/dialysis-sessions/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"patient_id": 18,
"doctor_id": 18,
"session_start": "soluta",
"session_end": "vel",
"blood_pressure_post": "similique",
"side_effects": "unde",
"status": "done"
};
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://dev.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://dev.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://dev.ms-hotel.net/api/dialysis-sessions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/dialysis-sessions/restore"
);
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.
Upload de fichier
Gestion des uploads de fichiers
Upload d'un fichier
requires authentication
Example request:
curl --request POST \
"https://dev.ms-hotel.net/api/upload-photo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"photo\": \"hnedauxtausonpjjmrfoihn\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/upload-photo"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"photo": "hnedauxtausonpjjmrfoihn"
};
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://dev.ms-hotel.net/api/users/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"role_id\": 10,
\"page_items\": 65,
\"nbre_items\": 4,
\"filter_value\": \"cupiditate\",
\"in_order_name\": false,
\"start_date\": \"2026-05-18\",
\"end_date\": \"2026-05-18\",
\"health_center_id\": 6,
\"department_id\": 4,
\"coverage_type\": \"complementary\",
\"marital_status\": \"widowed\",
\"is_patient\": false,
\"insurance_name\": \"sunt\",
\"company_name\": \"qui\",
\"role_types\": [
\"eligendi\"
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/users/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"role_id": 10,
"page_items": 65,
"nbre_items": 4,
"filter_value": "cupiditate",
"in_order_name": false,
"start_date": "2026-05-18",
"end_date": "2026-05-18",
"health_center_id": 6,
"department_id": 4,
"coverage_type": "complementary",
"marital_status": "widowed",
"is_patient": false,
"insurance_name": "sunt",
"company_name": "qui",
"role_types": [
"eligendi"
]
};
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://dev.ms-hotel.net/api/users" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"username\": \"kezn\",
\"firstname\": \"lleoldus\",
\"lastname\": \"zptu\",
\"gender\": \"male\",
\"birthday\": \"2026-05-18T11:12:12\",
\"birth_place\": \"idjakawcbpedsetabgwfthdom\",
\"marital_status\": \"married\",
\"nationality\": \"ikiobdorhkljyr\",
\"nui\": \"bmszfrt\",
\"niss\": \"rnrgxqdaqrsw\",
\"email\": \"abernathy.lottie@example.net\",
\"phone\": \"sn\",
\"phone2\": \"oevsoz\",
\"city\": \"khqzzfptmonabcrc\",
\"address\": \"tho\",
\"country\": \"zpmrcmksouvgqqcfwqgo\",
\"profession\": \"yseefs\",
\"preferred_payment_mode\": \"cwcpdvawnadzko\",
\"password\": \"!e<moo\",
\"photo\": \"ab\",
\"specialty\": \"fivcvxocuaealcjiwzrfvdw\",
\"license_number\": \"mduphqamhhmiranm\",
\"years_of_experience\": 33,
\"work_schedule\": \"nuinsjrzdeipknnxumlrgpgy\",
\"role_id\": 8,
\"health_center_id\": 14,
\"department_id\": 15,
\"mutuality_number\": \"qodms\",
\"coverage_type\": \"none\",
\"guardian_name\": \"pcissx\",
\"guardian_contact\": \"dfmj\",
\"guardian_relation\": \"ultyjcndwdctbi\",
\"insurance_name\": \"ipslirnbixejmwocwp\",
\"insurance_number\": \"aspdz\",
\"company_name\": \"jsbqdnzztpyoambewfmcgfwi\",
\"is_patient\": false,
\"reference\": \"qvlmefemprrpftbldsmimoohj\",
\"cni\": \"ixvgvhcwvdc\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "kezn",
"firstname": "lleoldus",
"lastname": "zptu",
"gender": "male",
"birthday": "2026-05-18T11:12:12",
"birth_place": "idjakawcbpedsetabgwfthdom",
"marital_status": "married",
"nationality": "ikiobdorhkljyr",
"nui": "bmszfrt",
"niss": "rnrgxqdaqrsw",
"email": "abernathy.lottie@example.net",
"phone": "sn",
"phone2": "oevsoz",
"city": "khqzzfptmonabcrc",
"address": "tho",
"country": "zpmrcmksouvgqqcfwqgo",
"profession": "yseefs",
"preferred_payment_mode": "cwcpdvawnadzko",
"password": "!e<moo",
"photo": "ab",
"specialty": "fivcvxocuaealcjiwzrfvdw",
"license_number": "mduphqamhhmiranm",
"years_of_experience": 33,
"work_schedule": "nuinsjrzdeipknnxumlrgpgy",
"role_id": 8,
"health_center_id": 14,
"department_id": 15,
"mutuality_number": "qodms",
"coverage_type": "none",
"guardian_name": "pcissx",
"guardian_contact": "dfmj",
"guardian_relation": "ultyjcndwdctbi",
"insurance_name": "ipslirnbixejmwocwp",
"insurance_number": "aspdz",
"company_name": "jsbqdnzztpyoambewfmcgfwi",
"is_patient": false,
"reference": "qvlmefemprrpftbldsmimoohj",
"cni": "ixvgvhcwvdc"
};
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://dev.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://dev.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://dev.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\": \"?tp~9@ag\"
}"
const url = new URL(
"https://dev.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": "?tp~9@ag"
};
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://dev.ms-hotel.net/api/users/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"firstname\": \"vnwbwchkljiwciexlgzqwx\",
\"lastname\": \"dhsojuumxzmr\",
\"gender\": \"female\",
\"birthday\": \"2026-05-18T11:12:12\",
\"birth_place\": \"psapwxtwr\",
\"marital_status\": \"divorced\",
\"nationality\": \"cxsmhehlramfrfdoh\",
\"nui\": \"wsvpziuhirldcib\",
\"niss\": \"tnymnxiiggjuotrjsddffyp\",
\"connexion_type\": \"phone\",
\"email\": \"okihn@example.org\",
\"phone\": \"ojqywscokwkpzr\",
\"phone2\": \"qvvrkzye\",
\"city\": \"wlsmfmvtxhee\",
\"address\": \"mpmxghfxp\",
\"country\": \"uayrjabsuztbzugtpyvnhcnb\",
\"password\": \"7?1v4KhPnLt2u+\\\"yaaLn\",
\"photo\": \"facilis\",
\"specialty\": \"bcnqqlfsqgduvxyfdogyqjya\",
\"license_number\": \"yewjx\",
\"years_of_experience\": 43,
\"work_schedule\": \"uouwxdtjyc\",
\"role_id\": 11,
\"health_center_id\": 11,
\"department_id\": 6,
\"mutuality_number\": \"kytwdptojiwk\",
\"coverage_type\": \"none\",
\"guardian_name\": \"dnqaaqweqvrnclwgynv\",
\"guardian_contact\": \"tiglrhzdiprjvdgeahf\",
\"guardian_relation\": \"bwuos\",
\"insurance_name\": \"rrnmwnrraxmoiapmy\",
\"insurance_number\": \"wqpwkzyaezzbomsreupovqgyo\",
\"company_name\": \"ypsslcvpvkzkwrrxh\",
\"is_patient\": true,
\"reference\": \"bo\",
\"cni\": \"xvggacreto\"
}"
const url = new URL(
"https://dev.ms-hotel.net/api/users/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"firstname": "vnwbwchkljiwciexlgzqwx",
"lastname": "dhsojuumxzmr",
"gender": "female",
"birthday": "2026-05-18T11:12:12",
"birth_place": "psapwxtwr",
"marital_status": "divorced",
"nationality": "cxsmhehlramfrfdoh",
"nui": "wsvpziuhirldcib",
"niss": "tnymnxiiggjuotrjsddffyp",
"connexion_type": "phone",
"email": "okihn@example.org",
"phone": "ojqywscokwkpzr",
"phone2": "qvvrkzye",
"city": "wlsmfmvtxhee",
"address": "mpmxghfxp",
"country": "uayrjabsuztbzugtpyvnhcnb",
"password": "7?1v4KhPnLt2u+\"yaaLn",
"photo": "facilis",
"specialty": "bcnqqlfsqgduvxyfdogyqjya",
"license_number": "yewjx",
"years_of_experience": 43,
"work_schedule": "uouwxdtjyc",
"role_id": 11,
"health_center_id": 11,
"department_id": 6,
"mutuality_number": "kytwdptojiwk",
"coverage_type": "none",
"guardian_name": "dnqaaqweqvrnclwgynv",
"guardian_contact": "tiglrhzdiprjvdgeahf",
"guardian_relation": "bwuos",
"insurance_name": "rrnmwnrraxmoiapmy",
"insurance_number": "wqpwkzyaezzbomsreupovqgyo",
"company_name": "ypsslcvpvkzkwrrxh",
"is_patient": true,
"reference": "bo",
"cni": "xvggacreto"
};
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://dev.ms-hotel.net/api/users/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_ids\": [
3
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/users/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_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.
Fonction de restauration multiples d'utilisateurs
requires authentication
Example request:
curl --request POST \
"https://dev.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://dev.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://dev.ms-hotel.net/api/users/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_ids\": [
15
]
}"
const url = new URL(
"https://dev.ms-hotel.net/api/users/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_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.