MENU navbar-image

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());

Request      

POST api/admissions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

patient_id   integer  optional  

ID du patient. Example: 1

doctor_id   integer  optional  

ID du médecin. Example: 2

medical_page_id   integer  optional  

ID de la consultation. Example: 5

status   string  optional  

Statut admission (active, discharged, transferred). Example: active

room_number   string  optional  

Numéro de chambre. Example: A12

start_date   string  optional  

date Date début (YYYY-MM-DD). Example: 2026-01-01

end_date   string  optional  

date Date fin (YYYY-MM-DD). Example: 2026-12-31

filter_value   string  optional  

Recherche globale. Example: sed

trashed   boolean  optional  

Inclure supprimés. Example: false

Body Parameters

patient_id   integer  optional  

Example: 18

doctor_id   integer  optional  

Example: 7

medical_page_id   integer  optional  

Example: 19

idbed   integer  optional  

Example: 8

status   string  optional  

Example: transferred

Must be one of:
  • active
  • discharged
  • transferred
room_number   string  optional  

Example: sunt

diagnosis_summary   string  optional  

Example: dolorem

treatment_plan   string  optional  

Example: architecto

allergies   string  optional  

Example: eius

emergency_contact   string  optional  

Example: ipsam

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

end_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

filter_value   string  optional  

Example: commodi

trashed   boolean  optional  

Example: false

page_items   integer  optional  

Example: 9

nbre_items   integer  optional  

Le champ value doit être au moins 1. Le champ value ne peut être supérieur à 1000. Example: 9

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());

Request      

POST api/admissions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

ID du patient. Example: 1

doctor_id   integer   

ID du médecin. Example: 2

medical_page_id   integer   

ID de la consultation. Example: 5

idbed   integer  optional  

The id of an existing record in the beds table. Example: 18

admitted_at   datetime   

Date d'entrée. Example: 2026-05-05 10:00:00

discharged_at   datetime  optional  

Date de sortie. Example: 2026-05-10 12:00:00

notes   string  optional  

Notes complémentaires. Example: sint

room_number   string  optional  

Numéro de chambre. Example: A12

status   string  optional  

Statut (active, discharged, transferred). Example: active

diagnosis_summary   string  optional  

Example: consequuntur

treatment_plan   string  optional  

Example: dolor

allergies   string  optional  

Example: ratione

emergency_contact   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: wpvmhdflehdnoybtjbe

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."
}
 

Request      

GET api/admissions/{admission_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

admission_id   integer   

The ID of the admission. Example: 1

admission   integer   

ID de l'admission. Example: 1

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());

Request      

PUT api/admissions/{admission_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

admission_id   integer   

The ID of the admission. Example: 1

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 12

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 3

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 19

room_number   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: uhaqa

idbed   integer  optional  

The id of an existing record in the beds table. Example: 1

admitted_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

discharged_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

status   string  optional  

Example: discharged

Must be one of:
  • active
  • discharged
  • transferred
notes   string  optional  

Example: aut

diagnosis_summary   string  optional  

Example: facere

treatment_plan   string  optional  

Example: sed

allergies   string  optional  

Example: sit

emergency_contact   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: fdrh

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());

Request      

POST api/admissions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the admissions table.

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());

Request      

POST api/admissions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the admissions table.

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());

Request      

POST api/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string   

Example: ipsam

password   string   

Example: SwB.Uh:x.hxxh&"8,

device_key   string  optional  

Example: qui

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());

Request      

POST api/logout

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

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());

Request      

POST api/salaries-advances/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Example: 11

nbre_items   integer  optional  

Example: 11

filter_value   string  optional  

Example: rerum

trashed   boolean  optional  

Example: true

user_id   integer  optional  

The id of an existing record in the users table. Example: 9

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 4

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

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());

Request      

POST api/salaries-advances

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

salary_advances   object[]   
user_approve_id   integer   

The id of an existing record in the users table. Example: 5

amount   string   

Example: provident

reason   string   

Example: incidunt

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."
}
 

Request      

GET api/salaries-advances/{salary_advance_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_advance_id   string   

The ID of the salary advance. Example: porro

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());

Request      

PUT api/salaries-advances/{salary_advance_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_advance_id   string   

The ID of the salary advance. Example: natus

Body Parameters

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 5

amount   string  optional  
status   string  optional  

Example: pending_approval

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected
reason   string  optional  

Example: qui

comments   string  optional  

Example: ea

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());

Request      

POST api/salaries-advances/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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());

Request      

POST api/salaries-advances/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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());

Request      

POST api/warnings/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 45

nbre_items   integer  optional  

Example: 10

user_id   integer  optional  

The id of an existing record in the users table. Example: 10

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ymkqjdgfzjmuxkpanovt

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());

Request      

POST api/warnings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warnings   object[]   
user_id   integer   

The id of an existing record in the users table. Example: 8

reason   string   

Example: veniam

date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

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."
}
 

Request      

GET api/warnings/{warning_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

warning_id   integer   

The ID of the warning. Example: 8

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());

Request      

PUT api/warnings/{warning_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

warning_id   integer   

The ID of the warning. Example: 18

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 20

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

page_items   integer  optional  

Example: 17

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Example: et

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());

Request      

POST api/warnings/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warning_ids   integer[]   

The id of an existing record in the warnings table.

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());

Request      

POST api/warnings/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warning_ids   integer[]   

The id of an existing record in the warnings table.

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());

Request      

POST api/warnings/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warning_ids   integer[]   

The id of an existing record in the warnings table.

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());

Request      

POST api/purchase-orders/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 51

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: nlbpmssqacagvfv

status   string  optional  

Example: approved

Must be one of:
  • requesting_price
  • pending_approval
  • approved
  • purchase_order
  • paid
  • delivered
  • cancelled
priority   string  optional  

Example: low

Must be one of:
  • low
  • medium
  • high
  • urgent
supplier_id   integer  optional  

The id of an existing record in the users table. Example: 15

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 19

medication_ids   integer[]  optional  

The id of an existing record in the medications table.

trashed   boolean  optional  

Example: true

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());

Request      

POST api/purchase-orders

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

supplier_id   integer   

The id of an existing record in the users table. Example: 7

responsible_id   integer   

The id of an existing record in the users table. Example: 11

description   string  optional  

Example: Molestias quas in amet amet voluptas.

status   string  optional  

Example: cancelled

Must be one of:
  • requesting_price
  • pending_approval
  • approved
  • purchase_order
  • paid
  • delivered
  • cancelled
priority   string   

Example: high

Must be one of:
  • low
  • medium
  • high
  • urgent
quotation_file   string  optional  

Example: velit

medications   object[]   
id   integer   

The id of an existing record in the medications table. Example: 12

unit_price   number   

Le champ value doit être au moins 0. Example: 47

quantity   integer   

Le champ value doit être au moins 1. Example: 34

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."
}
 

Request      

GET api/purchase-orders/{purchase_voucher}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

purchase_voucher   integer   

Example: 1

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());

Request      

PUT api/purchase-orders/{purchase_voucher}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

purchase_voucher   integer   

Example: 2

Body Parameters

supplier_id   integer  optional  

The id of an existing record in the users table. Example: 6

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 7

description   string  optional  

Example: Possimus nostrum numquam voluptas totam.

status   string  optional  

Example: pending_approval

Must be one of:
  • requesting_price
  • pending_approval
  • approved
  • purchase_order
  • paid
  • delivered
  • cancelled
priority   string  optional  

Example: medium

Must be one of:
  • low
  • medium
  • high
  • urgent
quotation_file   string  optional  

Example: et

medications   object[]  optional  
id   integer   

The id of an existing record in the medications table. Example: 20

unit_price   number   

Le champ value doit être au moins 0. Example: 30

quantity   integer   

Le champ value doit être au moins 1. Example: 42

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());

Request      

POST api/purchase-orders/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the purchase_orders table.

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());

Request      

POST api/purchase-orders/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the purchase_orders table.

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());

Request      

POST api/invoices/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 4

nbre_items   integer  optional  

Example: 2

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: bpjtysa

patient_id   integer  optional  

The id of an existing record in the users table. Example: 14

cashier_id   integer  optional  

The id of an existing record in the users table. Example: 7

status   string  optional  

Example: expedita

payment_mode   string  optional  

Example: aliquid

date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

trashed   boolean  optional  

Example: false

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());

Request      

POST api/invoices

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 8

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 18

discount   number  optional  

Le champ value doit être au moins 0. Example: 79

payment_mode   string  optional  

Example: inventore

notes   string  optional  

Example: autem

mm_operator   string  optional  

Example: iusto

mm_payer_number   string  optional  

Example: et

mm_transaction_ref   string  optional  

Example: necessitatibus

mm_payment_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

insurance_name   string  optional  

Example: voluptatem

insurance_ref   string  optional  

Example: aut

insurance_amount   number  optional  

Le champ value doit être au moins 0. Example: 82

patient_amount   number  optional  

Le champ value doit être au moins 0. Example: 47

items   object[]   

Le champ value doit contenir au moins 1 éléments.

item_type   string   

Example: distinctio

label   string   

Example: quasi

quantity   integer   

Le champ value doit être au moins 1. Example: 57

unit_price   number   

Le champ value doit être au moins 0. Example: 6

lab_request_id   integer  optional  

The id of an existing record in the lab_requests table. Example: 2

nursing_act_id   integer  optional  

The id of an existing record in the nursing_acts table. Example: 15

medication_id   integer  optional  

The id of an existing record in the medications table. Example: 10

prescription_id   integer  optional  

The id of an existing record in the prescriptions table. Example: 6

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."
}
 

Request      

GET api/invoices/{invoice_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

invoice_id   integer   

The ID of the invoice. Example: 7

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());

Request      

PUT api/invoices/{invoice_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

invoice_id   integer   

The ID of the invoice. Example: 9

Body Parameters

amount_paid   number  optional  

Le champ value doit être au moins 0. Example: 33

payment_mode   string  optional  

Example: dicta

discount   number  optional  

Le champ value doit être au moins 0. Example: 37

notes   string  optional  

Example: veritatis

mm_operator   string  optional  

Example: ipsa

mm_payer_number   string  optional  

Example: praesentium

mm_transaction_ref   string  optional  

Example: laborum

mm_payment_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

insurance_name   string  optional  

Example: omnis

insurance_ref   string  optional  

Example: expedita

insurance_amount   number  optional  

Le champ value doit être au moins 0. Example: 90

patient_amount   number  optional  

Le champ value doit être au moins 0. Example: 26

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());

Request      

POST api/invoices/{invoice_id}/cancel

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

invoice_id   integer   

The ID of the invoice. Example: 10

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());

Request      

POST api/invoices/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the invoices table.

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());

Request      

POST api/invoices/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the invoices table.

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());

Request      

POST api/medical-books/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 23

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: d

responsible_doctor_id   integer  optional  

The id of an existing record in the users table. Example: 9

health_center_id   integer  optional  

Example: 18

patient_id   integer  optional  

The id of an existing record in the users table. Example: 4

trashed   boolean  optional  

Example: true

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

ckd_stage   string  optional  

Example: officia

dialysis_type   string  optional  

Example: peritoneal

Must be one of:
  • hemodialysis
  • peritoneal
dialysis_center   string  optional  

Example: quis

current_doctor_name   string  optional  

Example: ut

ckd_diagnosis_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

blood_type   string  optional  

Example: culpa

status   string  optional  

Example: blanditiis

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());

Request      

POST api/medical-books

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 6

responsible_doctor_id   integer   

The id of an existing record in the users table. Example: 20

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 7

blood_type   string  optional  

Example: A-

Must be one of:
  • A+
  • A-
  • B+
  • B-
  • AB+
  • AB-
  • O+
  • O-
known_allergies   string  optional  

Example: eum

chronic_diseases   string  optional  

Example: excepturi

observation   string  optional  

Example: quod

status   string  optional  

Example: undone

Must be one of:
  • pending
  • validated
  • rejected
  • done
  • undone
current_doctor_name   string  optional  

Example: earum

current_doctor_phone   string  optional  

Example: commodi

current_doctor_address   string  optional  

Example: doloremque

medical_history   string  optional  

Example: eveniet

current_treatments   string  optional  

Example: ut

known_kidney_diseases   string  optional  

Example: unde

autoimmune_or_infectious_diseases   string  optional  

Example: consequatur

allergies   string  optional  

Example: autem

ckd_stage   string  optional  

Example: soluta

ckd_diagnosis_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

ckd_etiology   string  optional  

Example: illo

recent_biological_tests   string  optional  

Example: tenetur

renal_imaging_file   file  optional  

Must be a file. Le champ value ne peut être supérieur à 2048 kilobytes. Example: /tmp/phpQWh4uH

dry_weight   number  optional  

Example: 8940.94399

dialysis_indicated   boolean  optional  

Example: false

dialysis_type   string  optional  

Example: hemodialysis

Must be one of:
  • hemodialysis
  • peritoneal
dialysis_center   string  optional  

Example: est

dialysis_frequency   string  optional  

Example: omnis

dialysis_complications   string  optional  

Example: non

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."
}
 

Request      

GET api/medical-books/{medical_book}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medical_book   integer   

Example: 1

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());

Request      

PUT api/medical-books/{medical_book}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

medical_book   integer   

Example: 1

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 1

responsible_doctor_id   integer  optional  

The id of an existing record in the users table. Example: 10

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 1

blood_type   string  optional  

Example: AB+

Must be one of:
  • A+
  • A-
  • B+
  • B-
  • AB+
  • AB-
  • O+
  • O-
known_allergies   string  optional  

Example: nisi

chronic_diseases   string  optional  

Example: sed

observation   string  optional  

Example: aut

status   string  optional  

Example: done

Must be one of:
  • pending
  • validated
  • rejected
  • done
  • undone
current_doctor_name   string  optional  

Example: ex

current_doctor_phone   string  optional  

Example: dolorem

current_doctor_address   string  optional  

Example: deleniti

medical_history   string  optional  

Example: nisi

current_treatments   string  optional  

Example: provident

known_kidney_diseases   string  optional  

Example: cum

autoimmune_or_infectious_diseases   string  optional  

Example: est

allergies   string  optional  

Example: ipsum

ckd_stage   string  optional  

Example: tempora

ckd_diagnosis_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

ckd_etiology   string  optional  

Example: aut

recent_biological_tests   string  optional  

Example: rem

renal_imaging_file   file  optional  

Must be a file. Le champ value ne peut être supérieur à 2048 kilobytes. Example: /tmp/phpaw8YsJ

dry_weight   number  optional  

Example: 79

dialysis_indicated   boolean  optional  

Example: true

dialysis_type   string  optional  

Example: peritoneal

Must be one of:
  • hemodialysis
  • peritoneal
dialysis_center   string  optional  

Example: quae

dialysis_frequency   string  optional  

Example: dolores

dialysis_complications   string  optional  

Example: voluptas

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());

Request      

POST api/medical-books/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medical_books table.

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());

Request      

POST api/medical-books/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medical_books table.

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());

Request      

POST api/nursing-act-catalogs/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 19

nbre_items   integer  optional  

Example: 6

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ehhtcdqqktauxdlamdeh

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

type   string  optional  

Example: et

is_active   boolean  optional  

Example: true

trashed   boolean  optional  

Example: false

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());

Request      

POST api/nursing-act-catalogs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: ddmr

type   string   

Example: dolores

description   string  optional  

Example: Dicta quia qui qui sit.

price   number   

Le champ value doit être au moins 0. Example: 88

is_active   boolean  optional  

Example: false

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."
}
 

Request      

GET api/nursing-act-catalogs/{nursing_act_catalog}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

nursing_act_catalog   integer   

Example: 1

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());

Request      

PUT api/nursing-act-catalogs/{nursing_act_catalog}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

nursing_act_catalog   integer   

Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: umzieohdxmhwyvgbmynvkr

type   string  optional  

Example: quibusdam

description   string  optional  

Example: Velit non facere tenetur porro mollitia quis voluptatem incidunt.

price   number  optional  

Le champ value doit être au moins 0. Example: 42

is_active   boolean  optional  

Example: false

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());

Request      

POST api/nursing-act-catalogs/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the nursing_act_catalogs table.

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());

Request      

POST api/nursing-act-catalogs/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the nursing_act_catalogs table.

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());

Request      

POST api/lab-exam-catalogs/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 14

nbre_items   integer  optional  

Example: 7

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: axjhppusyffbfvkni

type   string  optional  

Example: esse

start_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-18

is_active   boolean  optional  

Example: false

trashed   boolean  optional  

Example: true

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());

Request      

POST api/lab-exam-catalogs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: bhtcm

code   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: idirrwgyzllfsmtzlznqvppzb

type   string   

Example: dolor

description   string  optional  

Example: Eos harum ea dolores repellat fuga ducimus voluptatem.

price   number   

Le champ value doit être au moins 0. Example: 54

turnaround_hours   integer  optional  

Le champ value doit être au moins 0. Example: 35

preparation_instructions   string  optional  

Example: veritatis

sample_required   string  optional  

Example: et

is_active   boolean  optional  

Example: false

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."
}
 

Request      

GET api/lab-exam-catalogs/{lab_exam_catalog}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

lab_exam_catalog   integer   

Example: 1

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());

Request      

PUT api/lab-exam-catalogs/{lab_exam_catalog}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

lab_exam_catalog   integer   

Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: a

type   string  optional  

Example: autem

description   string  optional  

Example: Provident molestiae tenetur doloribus ipsam rem.

price   number  optional  

Le champ value doit être au moins 0. Example: 18

turnaround_hours   integer  optional  

Le champ value doit être au moins 0. Example: 42

preparation_instructions   string  optional  

Example: est

sample_required   string  optional  

Example: nostrum

is_active   boolean  optional  

Example: false

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());

Request      

POST api/lab-exam-catalogs/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_exam_catalogs table.

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());

Request      

POST api/lab-exam-catalogs/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_exam_catalogs table.

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());

Request      

POST api/health-centers/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 63

nbre_items   integer  optional  

Example: 4

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ekccypaahcxt

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 14

trashed   boolean  optional  

Example: true

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());

Request      

POST api/health-centers

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

responsible_id   integer   

The id of an existing record in the users table. Example: 14

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: dqzrrznnpteudgdy

code   string  optional  

Le champ value ne peut contenir plus de 10 caractères. Example: xplecd

description   string  optional  

Example: Consequatur excepturi voluptas est.

address   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: azbvhihqktiwgj

city   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: ydghbgdcwchddcpnjv

country   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: mppjfqsxcalntavifabzowfq

phone   string   

Le champ value ne peut contenir plus de 200 caractères. Example: ttcdtcwqmrkkaiwzppeksi

logo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: lyxlmalmxsxhibpem

email   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: walsh.kiera@example.net

website   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: ezryhruyumyijnidwzbl

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."
}
 

Request      

GET api/health-centers/{health_center}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

health_center   integer   

Example: 1

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());

Request      

PUT api/health-centers/{health_center}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

health_center   integer   

Example: 1

Body Parameters

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 15

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: leyckuyoxaqxssotis

code   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: wvywxpskzwoci

description   string  optional  

Example: Hic non eos necessitatibus est.

address   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: slhszsoyxjxidbvyypo

city   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: u

country   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: g

phone   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: ulypaecelzvebq

logo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: qryizwvhylyatqidovfo

email   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: lkihn@example.net

website   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: sehpmpdldqj

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());

Request      

POST api/health-centers/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the health_centers table.

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());

Request      

POST api/health-centers/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the health_centers table.

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());

Request      

POST api/chat/rooms/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 55

nbre_items   integer  optional  

Example: 8

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: zbqebooagluidbswtf

is_group   boolean  optional  

Example: true

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());

Request      

POST api/chat/rooms

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: twxq

photo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: jcftaasqkg

participants   integer[]   

The id of an existing record in the users table.

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."
}
 

Request      

GET api/chat/rooms/{message_room}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_room   integer   

Example: 20

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());

Request      

PUT api/chat/rooms/{message_room}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_room   integer   

Example: 5

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: rrboduzlhlm

photo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: cs

participants   integer[]  optional  

The id of an existing record in the users table.

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());

Request      

POST api/chat/messages/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 44

nbre_items   integer  optional  

Example: 11

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: fofuznwcomctqdiu

message_room_id   integer  optional  

The id of an existing record in the message_rooms table. Example: 4

user_id   integer  optional  

The id of an existing record in the users table. Example: 9

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());

Request      

POST api/chat/messages

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

message_room_id   integer   

The id of an existing record in the message_rooms table. Example: 20

body   string   

Example: expedita

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."
}
 

Request      

GET api/chat/messages/{message_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_id   integer   

The ID of the message. Example: 13

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());

Request      

PUT api/chat/messages/{message_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_id   integer   

The ID of the message. Example: 8

Body Parameters

body   string   

Example: enim

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());

Request      

POST api/check-ups/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 33

nbre_items   integer  optional  

Example: 7

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: uo

patient_id   integer  optional  

The id of an existing record in the users table. Example: 17

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 5

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

alert_status   string  optional  

Example: critical

Must be one of:
  • normal
  • warning
  • critical
trashed   boolean  optional  

Example: false

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());

Request      

POST api/check-ups

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 8

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 1

dialysis_session_id   integer  optional  

Example: 2

weight_kg   number   

Example: 186.00594974

blood_pressure_systolic   integer  optional  

Example: 20

blood_pressure_diastolic   integer  optional  

Example: 18

heart_rate   integer  optional  

Example: 17

temperature_c   number  optional  

Example: 1692.224

blood_glucose   number  optional  

Example: 36513.1835705

urine_output_ml   integer  optional  

Example: 17

spo2   integer  optional  

Example: 16

creatinine   number  optional  

Example: 2306.6233

urea   number  optional  

Example: 4244.5209622

creatinine_clearance   number  optional  

Example: 41144944.6259

potassium   number  optional  

Example: 335702.1479349

sodium   number  optional  

Example: 30.606948

phosphorus   number  optional  

Example: 2.364226

calcium   number  optional  

Example: 2143.363

hemoglobin   number  optional  

Example: 5.71

notes   string  optional  

Example: et

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

hour   string  optional  
alert_status   string  optional  

Example: critical

Must be one of:
  • normal
  • warning
  • critical

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."
}
 

Request      

GET api/check-ups/{patient_check_up}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

patient_check_up   integer   

Example: 1

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());

Request      

PUT api/check-ups/{patient_check_up}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

patient_check_up   integer   

Example: 1

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 12

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 4

dialysis_session_id   integer  optional  

Example: 9

weight_kg   number   

Example: 38093010.555087

blood_pressure_systolic   integer  optional  

Example: 18

blood_pressure_diastolic   integer  optional  

Example: 4

heart_rate   integer  optional  

Example: 14

temperature_c   number  optional  

Example: 1.1

blood_glucose   number  optional  

Example: 387992373.05583

urine_output_ml   integer  optional  

Example: 13

spo2   integer  optional  

Example: 6

creatinine   number  optional  

Example: 265.213481

urea   number  optional  

Example: 373.599506602

creatinine_clearance   number  optional  

Example: 63162750.39088

potassium   number  optional  

Example: 0.32

sodium   number  optional  

Example: 72.78

phosphorus   number  optional  

Example: 17.57

calcium   number  optional  

Example: 61.940901

hemoglobin   number  optional  

Example: 98859146

notes   string  optional  

Example: dolorum

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

hour   string  optional  
alert_status   string  optional  

Example: normal

Must be one of:
  • normal
  • warning
  • critical

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());

Request      

POST api/check-ups/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the patient_check_ups table.

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());

Request      

POST api/check-ups/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the patient_check_ups table.

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());

Request      

POST api/cash-closures/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 3

nbre_items   integer  optional  

Example: 13

cashier_id   integer  optional  

The id of an existing record in the users table. Example: 15

status   string  optional  

Example: closed

Must be one of:
  • open
  • closed
date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

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());

Request      

POST api/cash-closures

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

closure_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

notes   string  optional  

Example: esse

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."
}
 

Request      

GET api/cash-closures/{cash_closure}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

cash_closure   integer   

Example: 15

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());

Request      

PUT api/cash-closures/{cash_closure}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

cash_closure   integer   

Example: 2

Body Parameters

status   string  optional  

Example: closed

Must be one of:
  • open
  • closed
notes   string  optional  

Example: unde

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());

Request      

POST api/contracts/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Example: 3

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Example: neque

position   string  optional  

Example: corrupti

status   string  optional  

Example: Terminated

Must be one of:
  • Active
  • Terminated
  • Pending
trashed   boolean  optional  

Example: true

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."
}
 

Request      

GET api/contracts/{contract}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contract   string   

The contract. Example: aspernatur

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());

Request      

POST api/contracts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer   

The id of an existing record in the users table. Example: 4

user_approve_id   integer   

The id of an existing record in the users table. Example: 14

type   string   

Example: harum

description   string  optional  

Example: Libero eos ipsa similique.

start_date   string   

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

duration   integer  optional  

Le champ value doit être au moins 1. Example: 12

working_hours   string   

Example: voluptatem

position   string   

Example: aut

gross_salary   number   

Le champ value doit être au moins 0. Example: 52

status   string  optional  

Example: Active

Must be one of:
  • Active
  • Terminated
  • Pending
service_benefits   string  optional  

Example: vel

bonus   string  optional  

Example: labore

number_days_off   integer  optional  

Example: 20

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());

Request      

PUT api/contracts/{contract}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contract   string   

The contract. Example: accusantium

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 6

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 9

type   string  optional  

Example: CDI

Must be one of:
  • CDD
  • CDI
  • Stage
description   string  optional  

Example: Consequuntur provident voluptate reiciendis et minima mollitia.

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

duration   integer  optional  

Le champ value doit être au moins 1. Example: 34

working_hours   string  optional  

Example: sit

position   string  optional  

Example: beatae

gross_salary   number  optional  

Le champ value doit être au moins 0. Example: 7

status   string  optional  

Example: Pending

Must be one of:
  • Active
  • Terminated
  • Pending
service_benefits   string  optional  

Example: perferendis

bonus   string  optional  

Example: nihil

number_days_off   integer  optional  

Example: 16

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());

Request      

POST api/contracts/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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());

Request      

POST api/contracts/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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());

Request      

POST api/contracts/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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());

Request      

POST api/supply-demands

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: jeenphgmubzvleamdhosbso

description   string  optional  

Example: Omnis veritatis itaque repellat voluptatum.

responsible_id   integer   

The id of an existing record in the users table. Example: 2

status   string  optional  

Example: accepted

Must be one of:
  • pending
  • accepted
  • refused
priority   string   

Example: medium

Must be one of:
  • high
  • medium
  • low
medications   object[]   

Le champ value doit contenir au moins 1 éléments.

id   integer   

The id of an existing record in the medications table. Example: 19

unit_price   integer  optional  

Example: 5

quantity   integer   

Le champ value doit être au moins 1. Example: 42

supplier_id   integer   

The id of an existing record in the users table. Example: 2

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());

Request      

POST api/supply-demands/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

filter_value   string  optional  

Example: dolores

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 15

priority   string  optional  

Example: medium

Must be one of:
  • high
  • medium
  • low
status   string  optional  

Example: accepted

Must be one of:
  • pending
  • accepted
  • refused
medication_ids   integer[]  optional  

The id of an existing record in the medications table.

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."
}
 

Request      

GET api/supply-demands/{supply_demand_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

supply_demand_id   integer   

The ID of the supply demand. Example: 7

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());

Request      

PUT api/supply-demands/{supply_demand_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

supply_demand_id   integer   

The ID of the supply demand. Example: 6

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: pg

description   string  optional  

Example: Laboriosam eos officiis molestiae delectus nulla.

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 13

status   string  optional  

Example: accepted

Must be one of:
  • pending
  • accepted
  • refused
priority   string  optional  

Example: low

Must be one of:
  • high
  • medium
  • low
medications   object[]  optional  

Le champ value doit contenir au moins 1 éléments.

id   integer   

The id of an existing record in the medications table. Example: 2

unit_price   integer  optional  

Example: 13

quantity   integer   

Le champ value doit être au moins 1. Example: 82

supplier_id   integer   

The id of an existing record in the users table. Example: 8

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());

Request      

POST api/supply-demands/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

supply_demand_ids   integer[]  optional  

The id of an existing record in the supply_demands table.

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());

Request      

POST api/supply-demands/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

supply_demand_ids   integer[]  optional  

The id of an existing record in the supply_demands table.

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());

Request      

POST api/explanation-requests/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 5

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: hufqsv

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());

Request      

POST api/explanation-requests

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: dolores

description   string  optional  

Example: Optio aut quia minus ut dolore.

idUser   integer   

The id of an existing record in the users table. Example: 19

idResponsable   integer   

The id of an existing record in the users table. Example: 7

image   string  optional  

Example: voluptates

comments   string  optional  

Example: qui

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."
}
 

Request      

GET api/explanation-requests/{explanation_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

explanation_request   integer   

Example: 9

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());

Request      

PUT api/explanation-requests/{explanation_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

explanation_request   integer   

Example: 7

Body Parameters

name   string  optional  

Example: ad

description   string  optional  

Example: Inventore aperiam ducimus est dolor neque id.

idUser   integer  optional  

The id of an existing record in the users table. Example: 8

idResponsable   integer  optional  

The id of an existing record in the users table. Example: 11

image   string  optional  

Example: voluptas

comments   string  optional  

Example: similique

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());

Request      

POST api/explanation-requests/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the explanation_requests table.

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());

Request      

POST api/explanation-requests/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the explanation_requests table.

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());

Request      

POST api/holidays/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 7

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 10

status   string  optional  

Example: pending_approval

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected
archive   string  optional  

Example: only_trashed

Must be one of:
  • with_trashed
  • only_trashed
date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

page_items   integer  optional  

Example: 6

nbre_items   integer  optional  

Example: 2

filter_value   string  optional  

Example: quae

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());

Request      

POST api/holidays

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

type   string   

Example: odit

start_date   string   

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

end_date   string   

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

days_taken   integer   

Example: 4

reason   string   

Le champ value ne peut contenir plus de 255 caractères. Example: an

user_approve_id   integer   

The id of an existing record in the users table. Example: 9

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."
}
 

Request      

GET api/holidays/{holiday_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

holiday_id   integer   

The ID of the holiday. Example: 2

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());

Request      

PUT api/holidays/{holiday_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

holiday_id   integer   

The ID of the holiday. Example: 2

Body Parameters

type   string  optional  

Example: officiis

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à today. Example: 2111-01-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2104-08-15

days_taken   integer  optional  

Example: 20

reason   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: noofpsxelcjfm

status   string  optional  

Example: pending_approval

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected

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());

Request      

POST api/holidays/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

idHolidays   integer[]   

The id of an existing record in the holidays table.

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());

Request      

POST api/holidays/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

idHolidays   integer[]   

The id of an existing record in the holidays table.

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());

Request      

POST api/permission-requests/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

status   string  optional  

Example: rejected

Must be one of:
  • pending
  • approved
  • rejected
departure   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

return   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

duration   integer  optional  

Example: 8

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 80

nbre_items   integer  optional  

Example: 20

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ebgtmshskfaemuteyujueotxs

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());

Request      

POST api/permission-requests

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

reason   string   

Example: voluptatem

departure   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

return   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après departure. Example: 2106-11-22

duration   integer  optional  

Le champ value doit être au moins 1. Example: 11

status   string  optional  

Example: approved

Must be one of:
  • pending
  • approved
  • rejected
user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 11

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."
}
 

Request      

GET api/permission-requests/{permission_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permission_request   string   

Example: est

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());

Request      

PUT api/permission-requests/{permission_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permission_request   string   

Example: nesciunt

Body Parameters

reason   string  optional  

Example: tempora

departure   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

return   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après departure. Example: 2052-01-02

duration   integer  optional  

Le champ value doit être au moins 1. Example: 64

status   string  optional  

Example: approved

Must be one of:
  • pending
  • approved
  • rejected
user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 5

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());

Request      

POST api/permission-requests/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the permission_requests table.

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());

Request      

POST api/permission-requests/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the permission_requests table.

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());

Request      

POST api/departments/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 58

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: rwlzrud

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

end_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 5

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 6

trashed   boolean  optional  

Example: true

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());

Request      

POST api/departments

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 20

health_center_id   integer   

The id of an existing record in the health_centers table. Example: 15

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: j

description   string   

Example: Non vero ut asperiores.

phone   string   

Le champ value ne peut contenir plus de 200 caractères. Example: bzibcnegzvevixfzs

email   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: kuhic.frankie@example.com

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."
}
 

Request      

GET api/departments/{department_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

department_id   integer   

The ID of the department. Example: 1

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());

Request      

PUT api/departments/{department_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

department_id   integer   

The ID of the department. Example: 1

Body Parameters

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 12

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 12

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: amipvotsanarpwqnfeytaq

description   string  optional  

Example: Eius et at rerum ea.

phone   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: g

email   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: ines.tillman@example.net

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());

Request      

POST api/departments/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the departments table.

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());

Request      

POST api/departments/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the departments table.

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());

Request      

POST api/rendez-vous/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 58

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: pgqrg

patient_id   integer  optional  

The id of an existing record in the users table. Example: 6

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 1

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

status   string  optional  

Example: undone

Must be one of:
  • pending
  • validated
  • rejected
  • done
  • undone
trashed   boolean  optional  

Example: true

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());

Request      

POST api/rendez-vous

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 3

doctor_id   integer   

The id of an existing record in the users table. Example: 3

date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

hour   string   

Example: et

description   string   

Example: Debitis quia voluptatem aspernatur quos.

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."
}
 

Request      

GET api/rendez-vous/{rendez_vous}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

rendez_vous   integer   

Example: 1

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());

Request      

PUT api/rendez-vous/{rendez_vous}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

rendez_vous   integer   

Example: 1

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 20

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 4

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

hour   string  optional  

Example: et

description   string  optional  

Example: Iure hic voluptatem ab est non quis.

status   string  optional  

Example: validated

Must be one of:
  • pending
  • validated
  • rejected
  • done
  • undone

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());

Request      

POST api/rendez-vous/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the rendez_vous table.

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());

Request      

POST api/rendez-vous/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the rendez_vous table.

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());

Request      

POST api/expense-types/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 5

nbre_items   integer  optional  

Le champ value doit être au moins 1. Example: 48

filter_value   string  optional  

Example: numquam

name   string  optional  

Example: quos

description   string  optional  

Example: Minima ut mollitia omnis nobis repudiandae aspernatur dicta.

trashed   boolean  optional  

Example: true

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());

Request      

POST api/expense-types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

Example: officia

description   string  optional  

Example: Rerum hic quo odio aut at quo porro.

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."
}
 

Request      

GET api/expense-types/{expense_type}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

expense_type   integer   

Example: 7

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());

Request      

PUT api/expense-types/{expense_type}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

expense_type   integer   

Example: 20

Body Parameters

name   string  optional  

Example: iusto

description   string  optional  

Example: Fuga eos alias enim beatae in explicabo voluptatibus.

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());

Request      

POST api/expense-types/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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());

Request      

POST api/expense-types/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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());

Request      

POST api/expense-types/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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());

Request      

POST api/presences/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 81

nbre_items   integer  optional  

Le champ value doit être au moins 1. Example: 65

filter_value   string  optional  

Example: et

user_id   integer  optional  

The id of an existing record in the users table. Example: 3

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 4

department_id   integer  optional  

The id of an existing record in the departments table. Example: 17

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

end_date   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à start_date. Example: 2078-07-31

type   string  optional  

Example: saepe

trashed   boolean  optional  

Example: true

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());

Request      

POST api/presences

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer   

The id of an existing record in the users table. Example: 12

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 15

department_id   integer  optional  

The id of an existing record in the departments table. Example: 7

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

hour   string  optional  

Must be a valid date in the format H:i. Example: 11:12

arrivalTime   string  optional  

Must be a valid date in the format H:i. Example: 11:12

departureTime   string  optional  

Must be a valid date in the format H:i. Example: 11:12

type   string   

Example: rerum

scanPerCourse   integer   

Le champ value doit être au moins 0. Example: 21

reason   string  optional  

Example: atque

savingType   string   

Example: perferendis

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."
}
 

Request      

GET api/presences/{presence_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

presence_id   integer   

The ID of the presence. Example: 14

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());

Request      

PUT api/presences/{presence_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

presence_id   integer   

The ID of the presence. Example: 14

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 13

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 13

department_id   integer  optional  

The id of an existing record in the departments table. Example: 1

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

hour   string  optional  

Must be a valid date in the format H:i. Example: 11:12

arrivalTime   string  optional  

Must be a valid date in the format H:i. Example: 11:12

departureTime   string  optional  

Must be a valid date in the format H:i. Example: 11:12

type   string  optional  

Example: enim

scanPerCourse   integer  optional  

Le champ value doit être au moins 0. Example: 0

reason   string  optional  

Example: enim

savingType   string  optional  

Example: modi

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());

Request      

POST api/presences/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the presences table.

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());

Request      

POST api/presences/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the presences table.

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());

Request      

POST api/presences/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the presences table.

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());

Request      

POST api/dashboardfounder

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

health_center_id   integer  optional  

The id of an existing record in the health_centers table. Example: 2

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());

Request      

POST api/care-schedule-executions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 39

nbre_items   integer  optional  

Example: 20

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: aypeubexghawdnhnvywds

care_schedule_id   integer  optional  

The id of an existing record in the care_schedules table. Example: 6

nurse_id   integer  optional  

The id of an existing record in the users table. Example: 10

status   string  optional  

Example: late

Must be one of:
  • pending
  • done
  • late
  • missed
nursing_act_id   integer  optional  

The id of an existing record in the nursing_acts table. Example: 4

date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

trashed   boolean  optional  

Example: false

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());

Request      

POST api/care-schedule-executions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

care_schedule_id   integer   

Example: 15

nurse_id   integer   

The id of an existing record in the users table. Example: 15

scheduled_at   string   

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

executed_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

status   string   

Example: pending

Must be one of:
  • pending
  • done
  • late
  • missed
delay_minutes   integer  optional  

Example: 1

observations   string  optional  

Example: at

nursing_act_id   integer  optional  

The id of an existing record in the nursing_acts table. Example: 18

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."
}
 

Request      

GET api/care-schedule-executions/{care_schedule_execution}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

care_schedule_execution   integer   

Example: 1

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());

Request      

PUT api/care-schedule-executions/{care_schedule_execution}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

care_schedule_execution   integer   

Example: 1

Body Parameters

care_schedule_id   integer  optional  

Example: 14

nurse_id   integer  optional  

Example: 7

scheduled_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

executed_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

status   string  optional  

Example: missed

Must be one of:
  • pending
  • done
  • late
  • missed
delay_minutes   integer  optional  

Example: 12

observations   string  optional  

Example: ducimus

nursing_act_id   integer  optional  

Example: 3

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());

Request      

POST api/care-schedule-executions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the care_schedule_executions table.

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());

Request      

POST api/care-schedule-executions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the care_schedule_executions table.

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());

Request      

POST api/care-schedule-executions/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the care_schedule_executions table.

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());

Request      

POST api/medication-prescription-executions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 13

nbre_items   integer  optional  

Example: 19

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: mqsf

medication_prescription_id   integer  optional  

Example: 12

scheduled_at   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

execute_at   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

status   string  optional  

Example: missed

Must be one of:
  • pending
  • done
  • late
  • missed
date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

trashed   boolean  optional  

Example: false

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());

Request      

POST api/medication-prescription-executions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

medication_prescription_id   integer   

Example: 8

scheduled_at   string   

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

execute_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

status   string   

Example: missed

Must be one of:
  • pending
  • done
  • late
  • missed
delay_minutes   integer  optional  

Example: 7

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."
}
 

Request      

GET api/medication-prescription-executions/{execution_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

execution_id   integer   

The ID of the execution. Example: 12

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());

Request      

PUT api/medication-prescription-executions/{execution_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

execution_id   integer   

The ID of the execution. Example: 10

Body Parameters

medication_prescription_id   integer  optional  

Example: 15

scheduled_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

execute_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

status   string  optional  

Example: pending

Must be one of:
  • pending
  • done
  • late
  • missed
delay_minutes   integer  optional  

Example: 17

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());

Request      

POST api/medication-prescription-executions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the medication_prescription_executions table.

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());

Request      

POST api/medication-prescription-executions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the medication_prescription_executions table.

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());

Request      

POST api/medication-prescription-executions/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the medication_prescription_executions table.

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());

Request      

POST api/forum/categories/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 50

nbre_items   integer  optional  

Example: 3

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: eekburcetelztppclfhakvk

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());

Request      

POST api/forum/categories

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: hvdxmshzvfw

description   string  optional  

Example: Voluptate culpa ut ex quia et itaque provident.

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."
}
 

Request      

GET api/forum/categories/{forum_category}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_category   integer   

Example: 1

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());

Request      

PUT api/forum/categories/{forum_category}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_category   integer   

Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: uzinticrlgjbby

description   string  optional  

Example: Omnis odio maxime ut reprehenderit et.

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());

Request      

POST api/forum/categories/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_categories table.

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());

Request      

POST api/forum/categories/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_categories table.

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());

Request      

POST api/forum/questions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 50

nbre_items   integer  optional  

Example: 12

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: kqufoosbfydb

start_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-18

forum_category_id   integer  optional  

The id of an existing record in the forum_categories table. Example: 19

user_id   integer  optional  

The id of an existing record in the users table. Example: 13

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());

Request      

POST api/forum/questions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

forum_category_id   integer   

The id of an existing record in the forum_categories table. Example: 13

title   string   

Le champ value ne peut contenir plus de 200 caractères. Example: rutpwtcsxa

body   string   

Example: fugiat

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."
}
 

Request      

GET api/forum/questions/{forum_question}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_question   integer   

Example: 1

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());

Request      

PUT api/forum/questions/{forum_question}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_question   integer   

Example: 1

Body Parameters

forum_category_id   integer  optional  

The id of an existing record in the forum_categories table. Example: 13

title   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: ux

body   string  optional  

Example: explicabo

is_resolved   boolean  optional  

Example: false

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());

Request      

POST api/forum/questions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_questions table.

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());

Request      

POST api/forum/questions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_questions table.

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());

Request      

POST api/forum/answers/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 87

nbre_items   integer  optional  

Example: 17

start_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-18

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: nyxjrizagowuwgwgaoy

forum_category_id   integer  optional  

The id of an existing record in the forum_categories table. Example: 3

forum_question_id   integer  optional  

The id of an existing record in the forum_questions table. Example: 17

user_id   integer  optional  

The id of an existing record in the users table. Example: 16

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());

Request      

POST api/forum/answers

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

forum_question_id   integer   

The id of an existing record in the forum_questions table. Example: 18

body   string   

Example: consequatur

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."
}
 

Request      

GET api/forum/answers/{forum_answer}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_answer   integer   

Example: 1

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());

Request      

PUT api/forum/answers/{forum_answer}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

forum_answer   integer   

Example: 1

Body Parameters

forum_question_id   integer  optional  

The id of an existing record in the forum_questions table. Example: 10

body   string  optional  

Example: neque

is_accepted   boolean  optional  

Example: true

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());

Request      

POST api/forum/answers/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_answers table.

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());

Request      

POST api/forum/answers/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the forum_answers table.

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());

Request      

POST api/rooms/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 59

nbre_items   integer  optional  

Le champ value doit être au moins 1. Example: 23

name   string  optional  

Example: est

type   string  optional  

Example: harum

etage   string  optional  

Example: eum

min_price   number  optional  

Le champ value doit être au moins 0. Example: 83

max_price   number  optional  

Le champ value doit être au moins 0. Example: 22

trashed   boolean  optional  

Example: false

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());

Request      

POST api/rooms

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: oolvgpnp

price   number  optional  

Le champ value doit être au moins 0. Example: 90

number_beds   integer  optional  

Le champ value doit être au moins 1. Example: 73

type   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: qbsdqosknaddhayapiqn

etage   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: aoyduaprljyohizpimlkdyk

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."
}
 

Request      

GET api/rooms/{room_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

room_id   integer   

The ID of the room. Example: 1

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());

Request      

PUT api/rooms/{room_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

room_id   integer   

The ID of the room. Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: udbchdnjbqmxd

price   number  optional  

Le champ value doit être au moins 0. Example: 68

number_beds   integer  optional  

Le champ value doit être au moins 1. Example: 65

type   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: jusjeqyjkf

etage   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: xezglxylaafrubozeiedh

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());

Request      

POST api/rooms/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the rooms table.

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());

Request      

POST api/rooms/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the rooms table.

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());

Request      

POST api/rooms/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the rooms table.

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());

Request      

POST api/lab-requests/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 20

nbre_items   integer  optional  

Example: 19

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ktmrfjuzannxrwjy

patient_id   integer  optional  

The id of an existing record in the users table. Example: 15

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 2

technician_id   integer  optional  

The id of an existing record in the users table. Example: 3

status   string  optional  

Example: done

Must be one of:
  • requested
  • sampled
  • in_progress
  • done
  • validated
lab_exam_pack_id   integer  optional  

The id of an existing record in the lab_exam_packs table. Example: 6

date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

trashed   boolean  optional  

Example: true

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());

Request      

POST api/lab-requests

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 3

doctor_id   integer   

The id of an existing record in the users table. Example: 20

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 4

lab_exam_catalog_id   integer  optional  

The id of an existing record in the lab_exam_catalogs table. Example: 8

lab_exam_pack_id   integer  optional  

The id of an existing record in the lab_exam_packs table. Example: 11

exam_name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: fodklqycgdepfidjpfdfluyv

clinical_info   string  optional  

Example: fugiat

price   number  optional  

Le champ value doit être au moins 0. Example: 76

requested_at   string   

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

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."
}
 

Request      

GET api/lab-requests/{lab_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

lab_request   integer   

Example: 1

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());

Request      

PUT api/lab-requests/{lab_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

lab_request   integer   

Example: 1

Body Parameters

status   string  optional  

Example: ipsa

technician_id   integer  optional  

The id of an existing record in the users table. Example: 19

validator_id   integer  optional  

The id of an existing record in the users table. Example: 7

clinical_info   string  optional  

Example: non

sampled_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

result_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

validated_at   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

price   number  optional  

Le champ value doit être au moins 0. Example: 47

results   object[]  optional  
parameter_name   string  optional  

This field is required when results is present. Example: facere

value   string  optional  

Example: magnam

unit   string  optional  

Example: minima

reference_range   string  optional  

Example: ipsum

is_abnormal   boolean  optional  

Example: true

notes   string  optional  

Example: sit

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());

Request      

POST api/lab-requests/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_requests table.

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());

Request      

POST api/lab-requests/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_requests table.

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());

Request      

POST api/beds/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 83

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: vz

idroom   integer  optional  

Example: 14

status   string  optional  

Example: free

Must be one of:
  • free
  • busy
trashed   boolean  optional  

Example: false

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());

Request      

POST api/beds

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

idroom   integer   

Example: 20

price   number  optional  

Le champ value doit être au moins 0. Example: 90

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: elyrgdzqbztvuj

type   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: xvxtohdirrygjc

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."
}
 

Request      

GET api/beds/{bed_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

bed_id   integer   

The ID of the bed. Example: 1

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());

Request      

PUT api/beds/{bed_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

bed_id   integer   

The ID of the bed. Example: 1

Body Parameters

idroom   integer  optional  

Example: 10

price   number  optional  

Le champ value doit être au moins 0. Example: 42

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: eonbehbhbqbymywrbjr

type   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: yfshxtahfqyyhbvrmhkvn

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());

Request      

POST api/beds/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the beds table.

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());

Request      

POST api/beds/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the beds table.

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());

Request      

POST api/beds/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the beds table.

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());

Request      

POST api/medications/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 64

nbre_items   integer  optional  

Example: 19

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: nxtzmjcdfkwhw

name   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: b

trashed   boolean  optional  

Example: true

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());

Request      

POST api/medications

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: ssrwllnelq

description   string  optional  

Example: Accusantium est modi similique est qui quasi quis doloremque.

photo   string  optional  

Example: soluta

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."
}
 

Request      

GET api/medications/{medication_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_id   integer   

The ID of the medication. Example: 1

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());

Request      

PUT api/medications/{medication_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_id   integer   

The ID of the medication. Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: ufsofjsemx

description   string  optional  

Example: Exercitationem labore sint velit fuga rerum reprehenderit.

photo   string  optional  

Example: cupiditate

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());

Request      

POST api/medications/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medications table.

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());

Request      

POST api/medications/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medications table.

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());

Request      

POST api/expense-reports/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

status   string  optional  

Example: paid

Must be one of:
  • pending_approval
  • approved
  • rejected
  • paid
date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 87

nbre_items   integer  optional  

Example: 16

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: wrhjfhnvevaharsssa

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."
}
 

Request      

GET api/expense-reports/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the expense report. Example: deserunt

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());

Request      

POST api/expense-reports

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

libelle   string   

Example: odio

amount   number   

Le champ value doit être au moins 0. Example: 49

description   string   

Example: Reiciendis qui aliquid nobis.

date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

status   string  optional  

Example: pending_approval

Must be one of:
  • pending_approval
  • approved
  • rejected
  • paid
idUserApprove   integer  optional  

The id of an existing record in the users table. Example: 14

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());

Request      

PUT api/expense-reports/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the expense report. Example: sint

Body Parameters

libelle   string  optional  

Example: sed

amount   number  optional  

Le champ value doit être au moins 0. Example: 42

description   string  optional  

Example: Est incidunt voluptate fuga ipsam magnam.

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

status   string  optional  

Example: paid

Must be one of:
  • pending_approval
  • approved
  • rejected
  • paid
idUserApprove   integer  optional  

The id of an existing record in the users table. Example: 16

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());

Request      

POST api/expense-reports/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the expense_reports table.

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());

Request      

POST api/expense-reports/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the expense_reports table.

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());

Request      

POST api/expense-reports/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the expense_reports table.

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());

Request      

POST api/foods/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 25

nbre_items   integer  optional  

Example: 9

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: eiarwttplqoaibuwtmxk

trashed   boolean  optional  

Example: false

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

name   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ninlomg

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());

Request      

POST api/foods

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: gx

description   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: Cumque distinctio eos sint molestias labore perspiciatis.

potassium_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: hepclqxvlgi

sodium_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: my

phosphorus_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: rrpq

photo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: vzlrjbodahsnzdi

food_alternatives   object[]  optional  
alternative_id   integer   

The id of an existing record in the food table. Example: 3

reason   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: k

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."
}
 

Request      

GET api/foods/{food_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

food_id   integer   

The ID of the food. Example: 6

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());

Request      

PUT api/foods/{food_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

food_id   integer   

The ID of the food. Example: 13

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: qdkxlcepg

description   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: Ea tempore fugit ex est eius quas.

potassium_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: dxzvzezrvg

sodium_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: hmbvnspawtodzrkchiqskjky

phosphorus_mg   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: jjntdfemirdclfkm

photo   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: mooibioku

food_alternatives   object[]  optional  
alternative_id   integer   

The id of an existing record in the food table. Example: 8

reason   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: dptsuacsizbhfztxtmxgvoi

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());

Request      

POST api/foods/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the food table.

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());

Request      

POST api/foods/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the food table.

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());

Request      

POST api/lab-exam-packs/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 29

nbre_items   integer  optional  

Example: 18

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: fnmlezyjvrwgqmqgcyajrc

is_active   boolean  optional  

Example: false

trashed   boolean  optional  

Example: false

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());

Request      

POST api/lab-exam-packs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: bffnhtyqo

description   string  optional  

Example: Ea eaque laborum quia qui et et non.

price   number   

Le champ value doit être au moins 0. Example: 58

is_active   boolean  optional  

Example: true

exam_ids   string[]  optional  

The id of an existing record in the lab_exam_catalogs table.

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."
}
 

Request      

GET api/lab-exam-packs/{labExamPack_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

labExamPack_id   integer   

The ID of the labExamPack. Example: 1

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());

Request      

PUT api/lab-exam-packs/{labExamPack_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

labExamPack_id   integer   

The ID of the labExamPack. Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: bajbqxtleqldidt

description   string  optional  

Example: Quasi numquam excepturi impedit qui est est mollitia.

price   number  optional  

Le champ value doit être au moins 0. Example: 52

is_active   boolean  optional  

Example: false

exam_ids   integer[]  optional  

The id of an existing record in the lab_exam_catalogs table.

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());

Request      

DELETE api/lab-exam-packs/{labExamPack_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

labExamPack_id   integer   

The ID of the labExamPack. Example: 1

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());

Request      

POST api/lab-exam-packs/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_exam_packs table.

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());

Request      

POST api/lab-exam-packs/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the lab_exam_packs table.

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());

Request      

POST api/medical-pages/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 29

nbre_items   integer  optional  

Example: 4

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: dohvtjrveickpvjgkx

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 14

medical_book_id   integer  optional  

The id of an existing record in the medical_books table. Example: 16

department_id   integer  optional  

The id of an existing record in the departments table. Example: 20

patient_id   integer  optional  

Example: 19

consultation_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

status   string  optional  

Example: completed

Must be one of:
  • pending
  • in_progress
  • completed
  • cancelled
start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

end_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

trashed   boolean  optional  

Example: false

consultation_type   string  optional  

Example: emergency

Must be one of:
  • first_visit
  • follow_up
  • emergency
disease_history   string  optional  

Example: voluptatum

current_treatments   string  optional  

Example: et

family_history   string  optional  

Example: quis

blood_pressure   string  optional  

Example: ipsum

heart_rate   integer  optional  

Example: 9

respiratory_rate   integer  optional  

Example: 1

temperature_c   number  optional  

Example: 268930.82

spo2   integer  optional  

Example: 9

blood_glucose   number  optional  

Example: 37372

weight_kg   number  optional  

Example: 65223.032

height_cm   number  optional  

Example: 312512999.99

bmi   number  optional  

Example: 4

pain_score   integer  optional  

Example: 14

general_condition   string  optional  

Example: altered

Must be one of:
  • good
  • altered
  • critical
general_condition_notes   string  optional  

Example: sit

physical_examination   string  optional  

Example: ut

hypothesis   string  optional  

Example: non

icd10_code   string  optional  

Example: eos

severity   string  optional  

Example: mild

Must be one of:
  • mild
  • moderate
  • severe
  • critical
discharge_decision   string  optional  

Example: home

Must be one of:
  • home
  • hospitalized
  • referred
  • deceased
next_appointment   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

additionnal_notes   string  optional  

Example: saepe

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());

Request      

POST api/medical-pages

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

medical_book_id   integer   

The id of an existing record in the medical_books table. Example: 13

department_id   integer  optional  

The id of an existing record in the departments table. Example: 8

doctor_id   integer   

The id of an existing record in the users table. Example: 19

consultation_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

reason_for_visit   string   

Example: dolore

clinical_notes   string   

Example: voluptatibus

diagnosis   string   

Example: iure

free_notes   string  optional  

Example: ullam

recommendations   string  optional  
status   string  optional  

Example: cancelled

Must be one of:
  • pending
  • in_progress
  • completed
  • cancelled
consultation_type   string  optional  

Example: follow_up

Must be one of:
  • first_visit
  • follow_up
  • emergency
disease_history   string  optional  

Example: voluptatibus

current_treatments   string  optional  

Example: nesciunt

family_history   string  optional  

Example: ex

blood_pressure   string  optional  

Example: dolorum

heart_rate   integer  optional  

Example: 19

respiratory_rate   integer  optional  

Example: 7

temperature_c   number  optional  

Example: 661512.2732758

spo2   integer  optional  

Example: 16

blood_glucose   number  optional  

Example: 245.592646952

weight_kg   number  optional  

Example: 52.700114

height_cm   number  optional  

Example: 65.531

bmi   number  optional  

Example: 1995327.8

pain_score   integer  optional  

Example: 1

general_condition   string  optional  

Example: critical

Must be one of:
  • good
  • altered
  • critical
general_condition_notes   string  optional  

Example: facilis

physical_examination   string  optional  

Example: itaque

hypothesis   string  optional  

Example: ducimus

icd10_code   string  optional  

Example: eveniet

severity   string  optional  

Example: critical

Must be one of:
  • mild
  • moderate
  • severe
  • critical
discharge_decision   string  optional  

Example: hospitalized

Must be one of:
  • home
  • hospitalized
  • referred
  • deceased
next_appointment   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

additionnal_notes   string  optional  

Example: odit

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."
}
 

Request      

GET api/medical-pages/{medical_page}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medical_page   integer   

Example: 1

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());

Request      

PUT api/medical-pages/{medical_page}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medical_page   integer   

Example: 1

Body Parameters

medical_book_id   integer  optional  

The id of an existing record in the medical_books table. Example: 1

department_id   integer  optional  

The id of an existing record in the departments table. Example: 14

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 12

consultation_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

reason_for_visit   string  optional  

Example: dicta

clinical_notes   string  optional  

Example: velit

diagnosis   string  optional  

Example: sunt

free_notes   string  optional  

Example: qui

recommendations   string  optional  

Example: ut

status   string  optional  

Example: pending

Must be one of:
  • pending
  • in_progress
  • completed
  • cancelled
consultation_type   string  optional  

Example: emergency

Must be one of:
  • first_visit
  • follow_up
  • emergency
disease_history   string  optional  

Example: itaque

current_treatments   string  optional  

Example: at

family_history   string  optional  

Example: animi

blood_pressure   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: toxfwvxqhk

heart_rate   integer  optional  

Example: 15

respiratory_rate   integer  optional  

Example: 19

temperature_c   number  optional  

Example: 0.32102

spo2   integer  optional  

Example: 14

blood_glucose   number  optional  

Example: 54.59219382

weight_kg   number  optional  

Example: 9112.4

height_cm   number  optional  

Example: 99821.58634019

bmi   number  optional  

Example: 3753395.9479

pain_score   integer  optional  

Example: 6

general_condition   string  optional  

Example: critical

Must be one of:
  • good
  • altered
  • critical
general_condition_notes   string  optional  

Example: et

physical_examination   string  optional  

Example: aut

hypothesis   string  optional  

Example: voluptas

icd10_code   string  optional  

Example: in

severity   string  optional  

Example: mild

Must be one of:
  • mild
  • moderate
  • severe
  • critical
discharge_decision   string  optional  

Example: home

Must be one of:
  • home
  • hospitalized
  • referred
  • deceased
next_appointment   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

additionnal_notes   string  optional  

Example: et

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());

Request      

POST api/medical-pages/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medical_pages table.

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());

Request      

POST api/medical-pages/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medical_pages table.

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());

Request      

POST api/permissions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 72

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Example: asperiores

ressource   string  optional  

Example: voluptas

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());

Request      

POST api/permissions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

permissions   object[]   

Le champ value doit contenir au moins 1 éléments.

name   string   

Example: exercitationem

description   string  optional  

Example: Earum recusandae et est illo.

ressource   string   

Example: beatae

code   string  optional  

Example: qui

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."
}
 

Request      

GET api/permissions/{permission}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permission   string   

The permission. Example: maiores

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());

Request      

PUT api/permissions/{permission}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permission   string   

The permission. Example: nisi

Body Parameters

name   string   

Example: nobis

permissions   object[]  optional  
description   string  optional  

Example: Debitis nihil fugiat ea eius asperiores et.

ressource   string  optional  

Example: libero

code   string  optional  

Example: praesentium

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());

Request      

POST api/medication-batches/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 25

nbre_items   integer  optional  

Example: 9

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: uadbvouzpunqlnkhnpteoyf

start_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2026-05-18

medication_id   integer  optional  

The id of an existing record in the medications table. Example: 17

expiry_alert   boolean  optional  

Example: true

trashed   boolean  optional  

Example: false

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());

Request      

POST api/medication-batches

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

medication_id   integer   

The id of an existing record in the medications table. Example: 1

batch_number   string   

Le champ value ne peut contenir plus de 100 caractères. Example: cyqsvtmpkzpyffkvggp

expiry_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

quantity_in   integer   

Le champ value doit être au moins 1. Example: 65

purchase_price   number  optional  

Le champ value doit être au moins 0. Example: 1

supplier   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: lw

received_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

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."
}
 

Request      

GET api/medication-batches/{medication_batch}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_batch   integer   

Example: 16

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());

Request      

PUT api/medication-batches/{medication_batch}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_batch   integer   

Example: 3

Body Parameters

batch_number   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: eovumbdivu

expiry_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

quantity_in   integer  optional  

Le champ value doit être au moins 0. Example: 32

purchase_price   number  optional  

Le champ value doit être au moins 0. Example: 87

supplier   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: yhclrpmppoxd

received_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

expiry_alert   boolean  optional  

Example: false

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());

Request      

POST api/medication-batches/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the medication_batches table.

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());

Request      

POST api/medication-batches/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the medication_batches table.

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());

Request      

POST api/care-schedules/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 16

nbre_items   integer  optional  

Example: 8

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: pyulmhlvjoxvexsr

patient_id   string  optional  

The id of an existing record in the users table.

is_active   boolean  optional  

Example: true

admission_id   string  optional  
medical_page_id   string  optional  
trashed   boolean  optional  

Example: true

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());

Request      

POST api/care-schedules

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   string   

The id of an existing record in the users table. Example: sed

admission_id   integer  optional  

Example: 13

medical_page_id   string   

Example: voluptatem

nursing_act_catalog_id   string   

Example: at

medication_id   string  optional  
act_name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: mqtlmobmanjsqzukfjdaw

dosage   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: yyldzldpzcgqykqrnmpkroxah

scheduled_time   string  optional  

Must be a valid date in the format H:i. Example: 11:12

frequency   string   

Le champ value ne peut contenir plus de 100 caractères. Example: iuwxds

frequence_number   number   

Example: 5579516.7983

start_date   string   

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

end_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

is_active   boolean  optional  

Example: true

notes   string  optional  

Example: cum

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."
}
 

Request      

GET api/care-schedules/{care_schedule}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

care_schedule   integer   

Example: 1

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());

Request      

PUT api/care-schedules/{care_schedule}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

care_schedule   integer   

Example: 1

Body Parameters

patient_id   string  optional  

The id of an existing record in the users table.

admission_id   integer  optional  

Example: 6

medical_page_id   string  optional  

The id of an existing record in the medical_pages table.

nursing_act_catalog_id   string  optional  

The id of an existing record in the nursing_act_catalogs table.

medication_id   string  optional  

The id of an existing record in the medications table.

act_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ximdpeqtxwd

dosage   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: kwqj

scheduled_time   string  optional  

Must be a valid date in the format H:i. Example: 11:12

frequency   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: vtf

frequence_number   number  optional  

Example: 23244

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

end_date   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à start_date. Example: 2099-03-05

is_active   boolean  optional  

Example: true

notes   string  optional  

Example: at

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());

Request      

POST api/care-schedules/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the care_schedules table.

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());

Request      

POST api/care-schedules/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the care_schedules table.

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());

Request      

POST api/care-schedules/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the care_schedules table.

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());

Request      

POST api/prescriptions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 14

nbre_items   integer  optional  

Example: 14

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: jzhjgweqksd

patient_id   integer  optional  

The id of an existing record in the users table. Example: 11

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 18

status   string  optional  

Example: cancelled

Must be one of:
  • pending
  • active
  • completed
  • cancelled
start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

end_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

trashed   boolean  optional  

Example: true

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());

Request      

POST api/prescriptions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 14

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 17

start_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2029-02-07

frequency   string  optional  

Example: aliquid

dosage   string  optional  

Example: deleniti

description   string  optional  

Example: Earum et est sunt necessitatibus.

status   string  optional  

Example: pending

Must be one of:
  • pending
  • active
  • completed
  • cancelled
medications   object[]   
medication_id   integer   

The id of an existing record in the medications table. Example: 18

dosage   integer   

Le champ value doit être au moins 1. Example: 52

frequency   string   

Example: distinctio

description   string  optional  

Example: Ipsa sint eos veniam totam.

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."
}
 

Request      

GET api/prescriptions/{prescription_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

prescription_id   integer   

The ID of the prescription. Example: 3

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());

Request      

PUT api/prescriptions/{prescription_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

prescription_id   integer   

The ID of the prescription. Example: 3

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 5

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 18

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2053-04-11

frequency   string  optional  

Example: magni

dosage   string  optional  

Example: ut

description   string  optional  

Example: Nesciunt adipisci debitis quod consequuntur sint.

status   string  optional  

Example: pending

Must be one of:
  • pending
  • active
  • completed
  • cancelled
medications   object[]  optional  
medication_id   integer   

The id of an existing record in the medications table. Example: 17

dosage   integer   

Le champ value doit être au moins 1. Example: 21

frequency   string   

Example: molestiae

description   string  optional  

Example: Quia non qui odit aut.

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());

Request      

POST api/prescriptions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the prescriptions table.

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());

Request      

POST api/prescriptions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the prescriptions table.

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());

Request      

POST api/medication-prescriptions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 38

nbre_items   integer  optional  

Le champ value doit être au moins 1. Example: 45

filter_value   string  optional  

Example: aut

prescription_id   integer  optional  

Example: 20

medication_id   integer  optional  

Example: 15

trashed   boolean  optional  

Example: false

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());

Request      

POST api/medication-prescriptions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

medication_id   string   

Example: nulla

prescription_id   string   

Example: consectetur

frequency   string   

Le champ value ne peut contenir plus de 100 caractères. Example: dvktpqterwzkmqfhxlgtp

frequence_number   number   

Example: 110774.403614

scheduled_time   string  optional  

Must be a valid date in the format H:i. Example: 11:12

dosage   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ahrxvqmkarwwygdl

duration_days   integer   

Le champ value doit être au moins 1. Example: 47

description   string  optional  

Example: Dolores laboriosam aut et quidem eum sed facere.

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."
}
 

Request      

GET api/medication-prescriptions/{medication_prescription}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_prescription   integer   

Example: 1

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());

Request      

PUT api/medication-prescriptions/{medication_prescription}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_prescription   integer   

Example: 1

Body Parameters

medication_id   string  optional  
prescription_id   string  optional  
frequency   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: yfwblocrm

frequence_number   number  optional  

Example: 657966601.7653

scheduled_time   string  optional  

Must be a valid date in the format H:i. Example: 11:12

dosage   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: t

duration_days   integer  optional  

Le champ value doit être au moins 1. Example: 1

description   string  optional  

Example: Ducimus id velit sit fugit aut ratione doloribus aliquid.

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());

Request      

POST api/medication-prescriptions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the medication_prescription table.

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());

Request      

POST api/medication-prescriptions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the medication_prescription table.

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());

Request      

POST api/medication-prescriptions/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the medication_prescription table.

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());

Request      

POST api/medications-intakes/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 23

nbre_items   integer  optional  

Example: 16

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: fq

trashed   boolean  optional  

Example: false

prescription_id   integer  optional  

The id of an existing record in the prescriptions table. Example: 14

medication_id   integer  optional  

The id of an existing record in the medications table. Example: 9

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2104-09-25

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());

Request      

POST api/medications-intakes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

prescription_id   integer   

The id of an existing record in the prescriptions table. Example: 10

medication_id   integer   

The id of an existing record in the medications table. Example: 7

is_taken   boolean  optional  

Example: true

date_time   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d H:i. Example: 2026-05-18 11:12

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."
}
 

Request      

GET api/medications-intakes/{medication_intake}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_intake   integer   

Example: 15

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());

Request      

PUT api/medications-intakes/{medication_intake}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

medication_intake   integer   

Example: 15

Body Parameters

prescription_id   integer  optional  

The id of an existing record in the prescriptions table. Example: 3

medication_id   integer  optional  

The id of an existing record in the medications table. Example: 4

is_taken   boolean  optional  

Example: false

date_time   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d H:i. Example: 2026-05-18 11:12

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());

Request      

POST api/medications-intakes/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medication_intakes table.

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());

Request      

POST api/medications-intakes/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the medication_intakes table.

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());

Request      

POST api/daily-reports/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

pageItems   integer  optional  

Le champ value doit être au moins 1. Example: 9

nbreItems   integer  optional  

Le champ value doit être au moins 1. Example: 57

idUser   integer  optional  

The id of an existing record in the users table. Example: 5

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

date_end   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à date_start. Example: 2047-07-28

filter_value   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: qcsuvcjox

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());

Request      

POST api/daily-reports

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer   

The id of an existing record in the users table. Example: 9

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: ypgmiagzuqmozvenspibicgz

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

description   string  optional  

Example: Nam sint et et voluptatibus similique veniam.

comments   string  optional  

Example: est

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."
}
 

Request      

GET api/daily-reports/{daily_report_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

daily_report_id   integer   

The ID of the daily report. Example: 15

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());

Request      

PUT api/daily-reports/{daily_report_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

daily_report_id   integer   

The ID of the daily report. Example: 6

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 7

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: zpypxodaws

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

description   string  optional  

Example: Culpa cupiditate fugiat consequatur enim fuga.

comments   string  optional  

Example: est

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());

Request      

POST api/daily-reports/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the daily_reports table.

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());

Request      

POST api/daily-reports/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the daily_reports table.

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());

Request      

POST api/daily-reports/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the daily_reports table.

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());

Request      

POST api/recipes/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 73

nbre_items   integer  optional  

Example: 16

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: wtygtnymbchbwqhj

is_low_potassium   boolean  optional  

Example: false

is_low_sodium   boolean  optional  

Example: true

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());

Request      

POST api/recipes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: ipsum

description   string  optional  

Example: Nesciunt porro eaque qui numquam qui autem reprehenderit.

instructions   string  optional  

Example: nostrum

preparation_time   integer  optional  

Example: 9

servings   integer  optional  

Example: 14

is_low_potassium   boolean  optional  

Example: true

is_low_sodium   boolean  optional  

Example: true

calories   integer  optional  

Example: 19

sodium_mg   integer  optional  

Example: 1

potassium_mg   integer  optional  

Example: 19

photo   string  optional  

Example: vel

foods   object[]   
food_id   integer   

The id of an existing record in the food table. Example: 15

quantity   string   

Example: blanditiis

description   string  optional  

Example: Odit ullam ullam error et.

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."
}
 

Request      

GET api/recipes/{recipe_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

recipe_id   integer   

The ID of the recipe. Example: 16

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());

Request      

PUT api/recipes/{recipe_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

recipe_id   integer   

The ID of the recipe. Example: 4

Body Parameters

name   string  optional  

Example: blanditiis

description   string  optional  

Example: Incidunt dolorum et perferendis sint.

instructions   string  optional  

Example: at

preparation_time   string  optional  

Example: sapiente

servings   string  optional  

Example: excepturi

is_low_potassium   boolean  optional  

Example: false

is_low_sodium   boolean  optional  

Example: false

calories   string  optional  

Example: modi

sodium_mg   string  optional  

Example: minus

potassium_mg   string  optional  

Example: pariatur

photo   string  optional  

Example: quo

foods   object[]  optional  
food_id   integer   

The id of an existing record in the food table. Example: 5

quantity   string   

Example: qui

description   string  optional  

Example: Et qui reiciendis sint et.

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());

Request      

POST api/recipes/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the recipes table.

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());

Request      

POST api/recipes/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the recipes table.

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());

Request      

POST api/salary-deductions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 10

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 20

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

status   string  optional  

Example: rejected

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected
page_items   integer  optional  

Le champ value doit être au moins 1. Example: 30

trashed   boolean  optional  

Example: true

nbre_items   integer  optional  

Example: 14

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: agqjsrfj

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());

Request      

POST api/salary-deductions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

salary_deductions   object[]   
user_id   integer   

The id of an existing record in the users table. Example: 14

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 15

reason   string   

Example: quidem

amount   number   

Le champ value doit être au moins 0. Example: 49

date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

status   string  optional  

Example: in_progress

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected

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."
}
 

Request      

GET api/salary-deductions/{salary_deduction}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_deduction   integer   

Example: 1

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());

Request      

PUT api/salary-deductions/{salary_deduction}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_deduction   integer   

Example: 13

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 12

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 17

reason   string  optional  

Example: eaque

amount   number  optional  

Le champ value doit être au moins 0. Example: 56

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

status   string  optional  

Example: rejected

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected

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());

Request      

POST api/salary-deductions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the salary_deductions table.

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());

Request      

POST api/salary-deductions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the salary_deductions table.

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());

Request      

POST api/roles/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 28

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Example: illum

types   string[]  optional  

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());

Request      

POST api/roles

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: ut

permissions   integer[]   

The id of an existing record in the permissions table.

description   string  optional  

Example: Unde nesciunt architecto maiores.

type   string  optional  

Example: culpa

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."
}
 

Request      

GET api/roles/{role_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

role_id   integer   

The ID of the role. Example: 1

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());

Request      

PUT api/roles/{role_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

role_id   integer   

The ID of the role. Example: 1

Body Parameters

name   string  optional  

Example: voluptas

permissions   integer[]  optional  

The id of an existing record in the permissions table.

description   string  optional  

Example: Optio recusandae commodi impedit dolor dolores inventore blanditiis.

type   string  optional  

Example: qui

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());

Request      

POST api/sanctions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Example: 7

nbre_items   integer  optional  

Example: 10

filter_value   string  optional  

Example: doloremque

trashed   boolean  optional  

Example: true

user_id   integer  optional  

The id of an existing record in the users table. Example: 2

type   string  optional  

Example: rem

created_by   integer  optional  

The id of an existing record in the users table. Example: 2

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."
}
 

Request      

GET api/sanctions/{sanction_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

sanction_id   integer   

The ID of the sanction. Example: 2

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());

Request      

POST api/sanctions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sanctions   object[]   

Le champ value doit contenir au moins 1 éléments.

user_id   integer   

The id of an existing record in the users table. Example: 4

type   string   

Example: alias

reasons   string   

Example: dolorem

description   string   

Example: Aut officiis facilis nobis voluptates magni.

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());

Request      

PUT api/sanctions/{sanction_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

sanction_id   integer   

The ID of the sanction. Example: 2

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 5

type   string  optional  

Example: iusto

reasons   string  optional  

Example: modi

description   string  optional  

Example: Quo aut eum labore quos.

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());

Request      

POST api/sanctions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the sanctions table.

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());

Request      

POST api/sanctions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the sanctions table.

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());

Request      

POST api/sanctions/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the sanctions table.

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());

Request      

POST api/nursing-acts/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 68

nbre_items   integer  optional  

Example: 20

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: qleuzkgxmsbupblhqnjxxg

patient_id   integer  optional  

The id of an existing record in the users table. Example: 14

nurse_id   integer  optional  

The id of an existing record in the users table. Example: 5

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 17

act_type   string  optional  

Example: enim

external_prescription_ref   string  optional  

Example: non

nursing_act_origin   string  optional  

Example: id

date_from   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

date_to   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

trashed   boolean  optional  

Example: false

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());

Request      

POST api/nursing-acts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 20

nurse_id   integer  optional  

The id of an existing record in the users table. Example: 19

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 7

nursing_act_catalog_id   integer  optional  

The id of an existing record in the nursing_act_catalogs table. Example: 9

patient_check_up_id   integer  optional  

The id of an existing record in the patient_check_ups table. Example: 8

act_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: iqgdtjdeuoeaa

act_type   string  optional  

Example: dolorum

reason   string  optional  

Example: dolorum

acts_performed   string  optional  

Example: voluptas

patient_evolution   string  optional  

Example: totam

observations   string  optional  

Example: et

incidents   string  optional  

Example: sed

external_prescription_ref   string  optional  

Example: provident

nursing_act_origin   string  optional  

Example: provident

price   number  optional  

Le champ value doit être au moins 0. Example: 73

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

hour   string  optional  

Must be a valid date in the format H:i. Example: 11:12

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."
}
 

Request      

GET api/nursing-acts/{nursing_act}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

nursing_act   integer   

Example: 1

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());

Request      

PUT api/nursing-acts/{nursing_act}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

nursing_act   integer   

Example: 1

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 2

nurse_id   integer  optional  

The id of an existing record in the users table. Example: 17

medical_page_id   integer  optional  

The id of an existing record in the medical_pages table. Example: 14

nursing_act_catalog_id   integer  optional  

The id of an existing record in the nursing_act_catalogs table. Example: 9

patient_check_up_id   integer  optional  

The id of an existing record in the patient_check_ups table. Example: 17

act_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: cbjurzar

act_type   string  optional  

Example: nostrum

reason   string  optional  

Example: repellat

acts_performed   string  optional  

Example: dolores

patient_evolution   string  optional  

Example: est

observations   string  optional  

Example: odio

incidents   string  optional  

Example: accusantium

external_prescription_ref   string  optional  

Example: qui

nursing_act_origin   string  optional  

Example: mollitia

price   number  optional  

Le champ value doit être au moins 0. Example: 66

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:13

hour   string  optional  

Must be a valid date in the format H:i. Example: 11:12

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());

Request      

POST api/nursing-acts/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the nursing_acts table.

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());

Request      

POST api/nursing-acts/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the nursing_acts table.

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());

Request      

POST api/dialysis-sessions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 19

nbre_items   integer  optional  

Example: 19

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ijzlzioddcnilvcsuctaed

trashed   boolean  optional  

Example: false

patient_id   integer  optional  

The id of an existing record in the users table. Example: 1

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 10

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2091-08-19

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());

Request      

POST api/dialysis-sessions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   integer   

The id of an existing record in the users table. Example: 9

doctor_id   integer   

The id of an existing record in the users table. Example: 12

session_start   string   

Example: ut

session_end   string  optional  

Example: eos

weight_before   string  optional  

Example: quae

weight_after   string  optional  

Example: rerum

fluid_removed   string  optional  

Example: aperiam

blood_pressure_post   string  optional  

Example: consequuntur

side_effects   string  optional  

Example: sed

description   string  optional  

Example: Possimus quidem voluptatem et repudiandae et a sit placeat.

observation   string  optional  

Example: sed

status   string  optional  

Example: cancelled

Must be one of:
  • pending
  • done
  • cancelled

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."
}
 

Request      

GET api/dialysis-sessions/{dialysis_session}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

dialysis_session   integer   

Example: 15

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());

Request      

PUT api/dialysis-sessions/{dialysis_session}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

dialysis_session   integer   

Example: 7

Body Parameters

patient_id   integer  optional  

The id of an existing record in the users table. Example: 18

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 18

session_start   string  optional  

Example: soluta

session_end   string  optional  

Example: vel

weight_before   string  optional  
weight_after   string  optional  
fluid_removed   string  optional  
blood_pressure_post   string  optional  

Example: similique

side_effects   string  optional  

Example: unde

status   string  optional  

Example: done

Must be one of:
  • pending
  • done
  • cancelled

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());

Request      

POST api/dialysis-sessions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the dialysis_sessions table.

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());

Request      

POST api/dialysis-sessions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the dialysis_sessions table.

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());

Request      

POST api/upload-photo

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

photo   string   

Le champ value ne peut contenir plus de 5120 caractères. Example: hnedauxtausonpjjmrfoihn

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());

Request      

POST api/users/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

role_id   integer  optional  

The id of an existing record in the roles table. Example: 10

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 65

nbre_items   integer  optional  

Example: 4

filter_value   string  optional  

Example: cupiditate

in_order_name   boolean  optional  

Example: false

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-18

health_center_id   integer  optional  

Example: 6

department_id   integer  optional  

Example: 4

coverage_type   string  optional  

Example: complementary

Must be one of:
  • obligatory
  • complementary
  • partial
  • none
marital_status   string  optional  

Example: widowed

Must be one of:
  • single
  • married
  • widowed
  • divorced
is_patient   boolean  optional  

Example: false

insurance_name   string  optional  

Example: sunt

company_name   string  optional  

Example: qui

role_types   string[]  optional  

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());

Request      

POST api/users

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: kezn

firstname   string   

Le champ value ne peut contenir plus de 255 caractères. Example: lleoldus

lastname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: zptu

gender   string   

Example: male

Must be one of:
  • male
  • female
birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

birth_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: idjakawcbpedsetabgwfthdom

marital_status   string  optional  

Example: married

Must be one of:
  • single
  • married
  • widowed
  • divorced
nationality   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ikiobdorhkljyr

nui   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: bmszfrt

niss   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: rnrgxqdaqrsw

email   string  optional  

Le champ value doit être une address e-mail valide. Le champ value ne peut contenir plus de 255 caractères. Example: abernathy.lottie@example.net

phone   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: sn

phone2   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: oevsoz

city   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: khqzzfptmonabcrc

address   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: tho

country   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: zpmrcmksouvgqqcfwqgo

profession   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: yseefs

preferred_payment_mode   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: cwcpdvawnadzko

password   string   

Le champ value doit contenir au moins 6 caractères. Example: !e<moo

photo   string  optional  

Example: ab

specialty   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: fivcvxocuaealcjiwzrfvdw

license_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: mduphqamhhmiranm

years_of_experience   integer  optional  

Le champ value doit être au moins 0. Example: 33

work_schedule   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: nuinsjrzdeipknnxumlrgpgy

role_id   integer   

The id of an existing record in the roles table. Example: 8

health_center_id   integer  optional  

Example: 14

department_id   integer  optional  

Example: 15

mutuality_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: qodms

coverage_type   string  optional  

Example: none

Must be one of:
  • obligatory
  • complementary
  • partial
  • none
guardian_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: pcissx

guardian_contact   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: dfmj

guardian_relation   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ultyjcndwdctbi

insurance_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ipslirnbixejmwocwp

insurance_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: aspdz

company_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: jsbqdnzztpyoambewfmcgfwi

is_patient   boolean  optional  

Example: false

reference   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: qvlmefemprrpftbldsmimoohj

cni   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ixvgvhcwvdc

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."
}
 

Request      

GET api/users/{user_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_id   integer   

The ID of the user. Example: 1

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());

Request      

PUT api/users/update-password/{user?}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user   integer  optional  

Example: 1

Body Parameters

password   string   

Le champ value doit contenir au moins 6 caractères. Example: ?tp~9@ag

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());

Request      

PUT api/users/{user?}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user   integer  optional  

Example: 1

Body Parameters

firstname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: vnwbwchkljiwciexlgzqwx

lastname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: dhsojuumxzmr

gender   string  optional  

Example: female

Must be one of:
  • male
  • female
birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-05-18T11:12:12

birth_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: psapwxtwr

marital_status   string  optional  

Example: divorced

Must be one of:
  • single
  • married
  • widowed
  • divorced
nationality   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: cxsmhehlramfrfdoh

nui   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: wsvpziuhirldcib

niss   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: tnymnxiiggjuotrjsddffyp

connexion_type   string  optional  

Example: phone

Must be one of:
  • email
  • phone
email   string  optional  

Le champ value doit être une address e-mail valide. Le champ value ne peut contenir plus de 255 caractères. Example: okihn@example.org

phone   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: ojqywscokwkpzr

phone2   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: qvvrkzye

city   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: wlsmfmvtxhee

address   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: mpmxghfxp

country   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: uayrjabsuztbzugtpyvnhcnb

password   string  optional  

Le champ value doit contenir au moins 6 caractères. Example: 7?1v4KhPnLt2u+"yaaLn

photo   string  optional  

Example: facilis

specialty   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: bcnqqlfsqgduvxyfdogyqjya

license_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: yewjx

years_of_experience   integer  optional  

Le champ value doit être au moins 0. Example: 43

work_schedule   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: uouwxdtjyc

role_id   integer  optional  

The id of an existing record in the roles table. Example: 11

health_center_id   integer  optional  

Example: 11

department_id   integer  optional  

Example: 6

mutuality_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: kytwdptojiwk

coverage_type   string  optional  

Example: none

Must be one of:
  • obligatory
  • complementary
  • partial
  • none
guardian_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: dnqaaqweqvrnclwgynv

guardian_contact   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: tiglrhzdiprjvdgeahf

guardian_relation   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: bwuos

insurance_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: rrnmwnrraxmoiapmy

insurance_number   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: wqpwkzyaezzbomsreupovqgyo

company_name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ypsslcvpvkzkwrrxh

is_patient   boolean  optional  

Example: true

reference   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: bo

cni   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: xvggacreto

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());

Request      

POST api/users/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_ids   integer[]  optional  

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());

Request      

POST api/users/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_ids   integer[]  optional  

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());

Request      

POST api/users/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_ids   integer[]  optional