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.

Authentification

Gestion de l'authentification des utilisateurs

Fonction permettant à un utilisateur déjà inscrit de se connecter

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"username\": \"dicta\",
    \"password\": \"|1:`J:%Ve\\\\\",
    \"device_key\": \"cupiditate\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": "dicta",
    "password": "|1:`J:%Ve\\",
    "device_key": "cupiditate"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string   

Example: dicta

password   string   

Example: |1:J:%Ve`

device_key   string  optional  

Example: cupiditate

Fonction permettant à un utilisateur connecté de se déconnecter

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/logout"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/logout

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Carnet Médical

Gestion des carnets médicaux

Lister les carnets médicaux

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medical-books/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 7,
    \"nbre_items\": 16,
    \"filter_value\": \"tbtuioivb\",
    \"responsible_doctor_id\": 19,
    \"health_center_id\": 6,
    \"patient_id\": 17,
    \"trashed\": false,
    \"ckd_stage\": \"iure\",
    \"dialysis_center\": \"deleniti\",
    \"current_doctor_name\": \"reprehenderit\",
    \"ckd_diagnosis_date\": \"2025-06-02T16:53:01\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-books/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 7,
    "nbre_items": 16,
    "filter_value": "tbtuioivb",
    "responsible_doctor_id": 19,
    "health_center_id": 6,
    "patient_id": 17,
    "trashed": false,
    "ckd_stage": "iure",
    "dialysis_center": "deleniti",
    "current_doctor_name": "reprehenderit",
    "ckd_diagnosis_date": "2025-06-02T16:53:01"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 7

nbre_items   integer  optional  

Example: 16

filter_value   string  optional  

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

responsible_doctor_id   integer  optional  

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

health_center_id   integer  optional  

Example: 6

patient_id   integer  optional  

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

trashed   boolean  optional  

Example: false

ckd_stage   string  optional  

Example: iure

dialysis_type   string  optional  
Must be one of:
0   string  optional  
dialysis_center   string  optional  

Example: deleniti

current_doctor_name   string  optional  

Example: reprehenderit

ckd_diagnosis_date   string  optional  

Le champ value doit être une date valide. Example: 2025-06-02T16:53:01

Ajouter un carnet médical

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medical-books" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "patient_id=4"\
    --form "responsible_doctor_id=15"\
    --form "health_center_id=12"\
    --form "blood_type=A-"\
    --form "current_doctor_name=dolores"\
    --form "current_doctor_phone=earum"\
    --form "current_doctor_address=similique"\
    --form "medical_history=molestiae"\
    --form "current_treatments=ut"\
    --form "known_kidney_diseases=mollitia"\
    --form "autoimmune_or_infectious_diseases=ab"\
    --form "allergies=sit"\
    --form "ckd_stage=placeat"\
    --form "ckd_diagnosis_date=2025-06-02T16:53:01"\
    --form "ckd_etiology=temporibus"\
    --form "recent_biological_tests=dignissimos"\
    --form "dry_weight=85421.281664544"\
    --form "dialysis_indicated="\
    --form "dialysis_type=hemodialysis"\
    --form "dialysis_center=mollitia"\
    --form "dialysis_frequency=et"\
    --form "dialysis_complications=harum"\
    --form "renal_imaging_file=@/tmp/php9khIA0" 
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-books"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('patient_id', '4');
body.append('responsible_doctor_id', '15');
body.append('health_center_id', '12');
body.append('blood_type', 'A-');
body.append('current_doctor_name', 'dolores');
body.append('current_doctor_phone', 'earum');
body.append('current_doctor_address', 'similique');
body.append('medical_history', 'molestiae');
body.append('current_treatments', 'ut');
body.append('known_kidney_diseases', 'mollitia');
body.append('autoimmune_or_infectious_diseases', 'ab');
body.append('allergies', 'sit');
body.append('ckd_stage', 'placeat');
body.append('ckd_diagnosis_date', '2025-06-02T16:53:01');
body.append('ckd_etiology', 'temporibus');
body.append('recent_biological_tests', 'dignissimos');
body.append('dry_weight', '85421.281664544');
body.append('dialysis_indicated', '');
body.append('dialysis_type', 'hemodialysis');
body.append('dialysis_center', 'mollitia');
body.append('dialysis_frequency', 'et');
body.append('dialysis_complications', 'harum');
body.append('renal_imaging_file', document.querySelector('input[name="renal_imaging_file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

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: 4

responsible_doctor_id   integer   

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

health_center_id   integer  optional  

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

blood_type   string  optional  

Example: A-

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

Example: dolores

current_doctor_phone   string  optional  

Example: earum

current_doctor_address   string  optional  

Example: similique

medical_history   string  optional  

Example: molestiae

current_treatments   string  optional  

Example: ut

known_kidney_diseases   string  optional  

Example: mollitia

autoimmune_or_infectious_diseases   string  optional  

Example: ab

allergies   string  optional  

Example: sit

ckd_stage   string  optional  

Example: placeat

ckd_diagnosis_date   string  optional  

Le champ value doit être une date valide. Example: 2025-06-02T16:53:01

ckd_etiology   string  optional  

Example: temporibus

recent_biological_tests   string  optional  

Example: dignissimos

renal_imaging_file   file  optional  

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

dry_weight   number  optional  

Example: 85421.281664544

dialysis_indicated   boolean  optional  

Example: false

dialysis_type   string  optional  

Example: hemodialysis

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

Example: mollitia

dialysis_frequency   string  optional  

Example: et

dialysis_complications   string  optional  

Example: harum

Afficher les infos d'un carnet médical

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/medical-books/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-books/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/medical-books/1 could not be found."
}
 

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://cms.ms-hotel.net/api/medical-books/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "patient_id=11"\
    --form "responsible_doctor_id=16"\
    --form "health_center_id=20"\
    --form "blood_type=A-"\
    --form "current_doctor_name=id"\
    --form "current_doctor_phone=quibusdam"\
    --form "current_doctor_address=sequi"\
    --form "medical_history=libero"\
    --form "current_treatments=rerum"\
    --form "known_kidney_diseases=est"\
    --form "autoimmune_or_infectious_diseases=illum"\
    --form "allergies=qui"\
    --form "ckd_stage=corrupti"\
    --form "ckd_diagnosis_date=2025-06-02T16:53:01"\
    --form "ckd_etiology=soluta"\
    --form "recent_biological_tests=adipisci"\
    --form "dry_weight=8001.158955474"\
    --form "dialysis_indicated=1"\
    --form "dialysis_center=qui"\
    --form "dialysis_frequency=qui"\
    --form "dialysis_complications=sint"\
    --form "renal_imaging_file=@/tmp/phpskJ6NH" 
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-books/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('patient_id', '11');
body.append('responsible_doctor_id', '16');
body.append('health_center_id', '20');
body.append('blood_type', 'A-');
body.append('current_doctor_name', 'id');
body.append('current_doctor_phone', 'quibusdam');
body.append('current_doctor_address', 'sequi');
body.append('medical_history', 'libero');
body.append('current_treatments', 'rerum');
body.append('known_kidney_diseases', 'est');
body.append('autoimmune_or_infectious_diseases', 'illum');
body.append('allergies', 'qui');
body.append('ckd_stage', 'corrupti');
body.append('ckd_diagnosis_date', '2025-06-02T16:53:01');
body.append('ckd_etiology', 'soluta');
body.append('recent_biological_tests', 'adipisci');
body.append('dry_weight', '8001.158955474');
body.append('dialysis_indicated', '1');
body.append('dialysis_center', 'qui');
body.append('dialysis_frequency', 'qui');
body.append('dialysis_complications', 'sint');
body.append('renal_imaging_file', document.querySelector('input[name="renal_imaging_file"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());

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: 11

responsible_doctor_id   integer  optional  

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

health_center_id   integer  optional  

Example: 20

blood_type   string  optional  

Example: A-

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

Example: id

current_doctor_phone   string  optional  

Example: quibusdam

current_doctor_address   string  optional  

Example: sequi

medical_history   string  optional  

Example: libero

current_treatments   string  optional  

Example: rerum

known_kidney_diseases   string  optional  

Example: est

autoimmune_or_infectious_diseases   string  optional  

Example: illum

allergies   string  optional  

Example: qui

ckd_stage   string  optional  

Example: corrupti

ckd_diagnosis_date   string  optional  

Le champ value doit être une date valide. Example: 2025-06-02T16:53:01

ckd_etiology   string  optional  

Example: soluta

recent_biological_tests   string  optional  

Example: adipisci

renal_imaging_file   file  optional  

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

dry_weight   number  optional  

Example: 8001.158955474

dialysis_indicated   boolean  optional  

Example: true

dialysis_type   string  optional  
Must be one of:
0   string  optional  
dialysis_center   string  optional  

Example: qui

dialysis_frequency   string  optional  

Example: qui

dialysis_complications   string  optional  

Example: sint

Archiver plusieurs medical_books

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medical-books/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        14
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-books/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/medical-books/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        18
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-books/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        18
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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.

Centres de santé

Gestion des centres de santé

Lister les centres de santé

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/health-centers/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 56,
    \"nbre_items\": 8,
    \"filter_value\": \"xpl\",
    \"responsible_id\": 17,
    \"trashed\": true
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/health-centers/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 56,
    "nbre_items": 8,
    "filter_value": "xpl",
    "responsible_id": 17,
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 56

nbre_items   integer  optional  

Example: 8

filter_value   string  optional  

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

responsible_id   integer  optional  

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

trashed   boolean  optional  

Example: true

Ajouter un centre de santé

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/health-centers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"responsible_id\": 5,
    \"name\": \"xwmauzctnoictv\",
    \"description\": \"Et illum quia laboriosam sed harum quia.\",
    \"address\": \"yferrkgqxrbhjpivun\",
    \"city\": \"etgnbeleryskbqdbc\",
    \"country\": \"vwfizixcgrxcvazh\",
    \"phone\": \"tgzkkdffnjadpx\",
    \"logo\": \"frsiehp\",
    \"email\": \"dhickle@example.org\",
    \"website\": \"xkjtlukhz\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/health-centers"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "responsible_id": 5,
    "name": "xwmauzctnoictv",
    "description": "Et illum quia laboriosam sed harum quia.",
    "address": "yferrkgqxrbhjpivun",
    "city": "etgnbeleryskbqdbc",
    "country": "vwfizixcgrxcvazh",
    "phone": "tgzkkdffnjadpx",
    "logo": "frsiehp",
    "email": "dhickle@example.org",
    "website": "xkjtlukhz"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 5

name   string   

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

description   string  optional  

Example: Et illum quia laboriosam sed harum quia.

address   string  optional  

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

city   string  optional  

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

country   string  optional  

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

phone   string   

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

logo   string  optional  

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

email   string  optional  

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

website   string  optional  

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

Afficher les informations d'un centre de santé

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/health-centers/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/health-centers/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/health-centers/1 could not be found."
}
 

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://cms.ms-hotel.net/api/health-centers/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"responsible_id\": 8,
    \"name\": \"eghdelmaasqiqzhknatpeqa\",
    \"description\": \"Harum totam provident doloribus sit iste qui.\",
    \"address\": \"gpwzncedgaykones\",
    \"city\": \"mgknouqiymk\",
    \"country\": \"oncdgsucdymejrvt\",
    \"phone\": \"opledvnli\",
    \"logo\": \"ivtbupniwbhhkh\",
    \"email\": \"ohoeger@example.net\",
    \"website\": \"hiw\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/health-centers/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "responsible_id": 8,
    "name": "eghdelmaasqiqzhknatpeqa",
    "description": "Harum totam provident doloribus sit iste qui.",
    "address": "gpwzncedgaykones",
    "city": "mgknouqiymk",
    "country": "oncdgsucdymejrvt",
    "phone": "opledvnli",
    "logo": "ivtbupniwbhhkh",
    "email": "ohoeger@example.net",
    "website": "hiw"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 8

name   string  optional  

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

description   string  optional  

Example: Harum totam provident doloribus sit iste qui.

address   string  optional  

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

city   string  optional  

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

country   string  optional  

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

phone   string  optional  

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

logo   string  optional  

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

email   string  optional  

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

website   string  optional  

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

Archiver plusieurs health_centers

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/health-centers/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        12
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/health-centers/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        12
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/health-centers/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        20
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/health-centers/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        20
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/chat/rooms/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 20,
    \"nbre_items\": 10,
    \"filter_value\": \"ikouwyrgfwmn\",
    \"is_group\": false
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/chat/rooms/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 20,
    "nbre_items": 10,
    "filter_value": "ikouwyrgfwmn",
    "is_group": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 20

nbre_items   integer  optional  

Example: 10

filter_value   string  optional  

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

is_group   boolean  optional  

Example: false

Démarrer une discussion

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/chat/rooms" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"pogaw\",
    \"photo\": \"kiewzwuuuatijurylzypu\",
    \"participants\": [
        14
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/chat/rooms"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "pogaw",
    "photo": "kiewzwuuuatijurylzypu",
    "participants": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: pogaw

photo   string  optional  

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

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://cms.ms-hotel.net/api/chat/rooms/8" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/chat/rooms/8"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/chat/rooms/8 could not be found."
}
 

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: 8

Modifier une discussion

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/chat/rooms/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"hlbsqjwxrucd\",
    \"photo\": \"xqsrrriewsxdaatstg\",
    \"participants\": [
        8
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/chat/rooms/2"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "hlbsqjwxrucd",
    "photo": "xqsrrriewsxdaatstg",
    "participants": [
        8
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 2

Body Parameters

name   string  optional  

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

photo   string  optional  

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

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://cms.ms-hotel.net/api/chat/messages/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 10,
    \"nbre_items\": 5,
    \"filter_value\": \"zreptqrmicrui\",
    \"message_room_id\": 1,
    \"user_id\": 7
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/chat/messages/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 10,
    "nbre_items": 5,
    "filter_value": "zreptqrmicrui",
    "message_room_id": 1,
    "user_id": 7
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 10

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

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

message_room_id   integer  optional  

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

user_id   integer  optional  

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

Ajouter un message

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/chat/messages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"message_room_id\": 7,
    \"body\": \"ab\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/chat/messages"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "message_room_id": 7,
    "body": "ab"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 7

body   string   

Example: ab

Afficher un message

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/chat/messages/6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/chat/messages/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/chat/messages/6 could not be found."
}
 

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: 6

Modifier un message

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/chat/messages/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"body\": \"in\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/chat/messages/12"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "body": "in"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 12

Body Parameters

body   string   

Example: in

Checkups patients

Gestion des checkups patients

Lister les checkups patients

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/check-ups/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 69,
    \"nbre_items\": 14,
    \"filter_value\": \"hkhlasfaqg\",
    \"patient_id\": 17,
    \"date\": \"2025-06-02\",
    \"alert_status\": \"warning\",
    \"trashed\": false
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/check-ups/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 69,
    "nbre_items": 14,
    "filter_value": "hkhlasfaqg",
    "patient_id": 17,
    "date": "2025-06-02",
    "alert_status": "warning",
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 69

nbre_items   integer  optional  

Example: 14

filter_value   string  optional  

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

patient_id   integer  optional  

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

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

alert_status   string  optional  

Example: warning

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

Example: false

Ajouter un checkup patient

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/check-ups" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 8,
    \"dialysis_session_id\": 2,
    \"weight_kg\": \"nihil\",
    \"alert_status\": \"warning\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/check-ups"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 8,
    "dialysis_session_id": 2,
    "weight_kg": "nihil",
    "alert_status": "warning"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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

dialysis_session_id   integer  optional  

Example: 2

weight_kg   string   

Example: nihil

blood_pressure_systolic   string  optional  
blood_pressure_diastolic   string  optional  
heart_rate   string  optional  
temperature_c   string  optional  
blood_glucose   string  optional  
urine_output_ml   string  optional  
spo2   string  optional  
creatinine   string  optional  
urea   string  optional  
creatinine_clearance   string  optional  
potassium   string  optional  
sodium   string  optional  
phosphorus   string  optional  
calcium   string  optional  
hemoglobin   string  optional  
notes   string  optional  
alert_status   string  optional  

Example: warning

Must be one of:
  • normal
  • warning
  • critical

Afficher les infos d'un checkup patient

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/check-ups/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/check-ups/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/check-ups/1 could not be found."
}
 

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://cms.ms-hotel.net/api/check-ups/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 4,
    \"dialysis_session_id\": 2,
    \"weight_kg\": \"perferendis\",
    \"alert_status\": \"critical\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/check-ups/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 4,
    "dialysis_session_id": 2,
    "weight_kg": "perferendis",
    "alert_status": "critical"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 4

dialysis_session_id   integer  optional  

Example: 2

weight_kg   string   

Example: perferendis

blood_pressure_systolic   string  optional  
blood_pressure_diastolic   string  optional  
heart_rate   string  optional  
temperature_c   string  optional  
blood_glucose   string  optional  
urine_output_ml   string  optional  
spo2   string  optional  
creatinine   string  optional  
urea   string  optional  
creatinine_clearance   string  optional  
potassium   string  optional  
sodium   string  optional  
phosphorus   string  optional  
calcium   string  optional  
hemoglobin   string  optional  
notes   string  optional  
alert_status   string  optional  

Example: critical

Must be one of:
  • normal
  • warning
  • critical

Archiver plusieurs patient_check_ups

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/check-ups/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        20
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/check-ups/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        20
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/check-ups/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        5
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/check-ups/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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.

Départements

Gestion des départements

Lister les départements

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/departments/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 37,
    \"nbre_items\": 3,
    \"filter_value\": \"ljic\",
    \"responsible_id\": 14,
    \"health_center_id\": 2,
    \"trashed\": true
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/departments/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 37,
    "nbre_items": 3,
    "filter_value": "ljic",
    "responsible_id": 14,
    "health_center_id": 2,
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 37

nbre_items   integer  optional  

Example: 3

filter_value   string  optional  

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

responsible_id   integer  optional  

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

health_center_id   integer  optional  

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

trashed   boolean  optional  

Example: true

Ajouter un département

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/departments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"responsible_id\": 2,
    \"health_center_id\": 11,
    \"name\": \"pwslwrqeqilqgkxmamoynksrv\",
    \"description\": \"Non quia voluptatem atque fuga excepturi ut quisquam ut.\",
    \"phone\": \"ghpjxlp\",
    \"email\": \"tromp.roscoe@example.net\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/departments"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "responsible_id": 2,
    "health_center_id": 11,
    "name": "pwslwrqeqilqgkxmamoynksrv",
    "description": "Non quia voluptatem atque fuga excepturi ut quisquam ut.",
    "phone": "ghpjxlp",
    "email": "tromp.roscoe@example.net"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 2

health_center_id   integer   

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

name   string   

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

description   string   

Example: Non quia voluptatem atque fuga excepturi ut quisquam ut.

phone   string   

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

email   string  optional  

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

Afficher les infos d'un département

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/departments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/departments/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/departments/1 could not be found."
}
 

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://cms.ms-hotel.net/api/departments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"responsible_id\": 17,
    \"health_center_id\": 4,
    \"name\": \"cqofn\",
    \"description\": \"Voluptatem necessitatibus eveniet est.\",
    \"phone\": \"epqmt\",
    \"email\": \"romaguera.gus@example.org\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/departments/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "responsible_id": 17,
    "health_center_id": 4,
    "name": "cqofn",
    "description": "Voluptatem necessitatibus eveniet est.",
    "phone": "epqmt",
    "email": "romaguera.gus@example.org"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 17

health_center_id   integer  optional  

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

name   string  optional  

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

description   string  optional  

Example: Voluptatem necessitatibus eveniet est.

phone   string  optional  

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

email   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: romaguera.gus@example.org

Archiver plusieurs medical_books

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/departments/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        4
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/departments/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        4
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/departments/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        13
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/departments/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        13
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/rendez-vous/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 23,
    \"nbre_items\": 7,
    \"filter_value\": \"kjjtfpgblnnyhf\",
    \"patient_id\": 12,
    \"doctor_id\": 20,
    \"date\": \"2025-06-02\",
    \"status\": \"rejected\",
    \"trashed\": false
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/rendez-vous/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 23,
    "nbre_items": 7,
    "filter_value": "kjjtfpgblnnyhf",
    "patient_id": 12,
    "doctor_id": 20,
    "date": "2025-06-02",
    "status": "rejected",
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 23

nbre_items   integer  optional  

Example: 7

filter_value   string  optional  

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

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: 20

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

status   string  optional  

Example: rejected

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

Example: false

Ajouter un rendez-vous

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/rendez-vous" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 17,
    \"doctor_id\": 7,
    \"date\": \"2025-06-02\",
    \"hour\": \"16:53\",
    \"description\": \"In et laboriosam sunt.\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/rendez-vous"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 17,
    "doctor_id": 7,
    "date": "2025-06-02",
    "hour": "16:53",
    "description": "In et laboriosam sunt."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 17

doctor_id   integer   

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

date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

hour   string   

Must be a valid date in the format H:i. Example: 16:53

description   string   

Example: In et laboriosam sunt.

Afficher les infos d'un rendez-vous

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/rendez-vous/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/rendez-vous/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/rendez-vous/1 could not be found."
}
 

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://cms.ms-hotel.net/api/rendez-vous/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 9,
    \"doctor_id\": 11,
    \"date\": \"2025-06-02\",
    \"hour\": \"16:53\",
    \"description\": \"Vitae dolor est maxime dolorem dolores at consequuntur voluptate.\",
    \"status\": \"pending\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/rendez-vous/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 9,
    "doctor_id": 11,
    "date": "2025-06-02",
    "hour": "16:53",
    "description": "Vitae dolor est maxime dolorem dolores at consequuntur voluptate.",
    "status": "pending"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 9

doctor_id   integer  optional  

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

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

hour   string  optional  

Must be a valid date in the format H:i. Example: 16:53

description   string  optional  

Example: Vitae dolor est maxime dolorem dolores at consequuntur voluptate.

status   string  optional  

Example: pending

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

Archiver plusieurs rendez_vous

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/rendez-vous/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/rendez-vous/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/rendez-vous/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        2
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/rendez-vous/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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.

Forum

Catégories Gestion des catégories de forum

Lister les categories de forum

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/forum/categories/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 22,
    \"nbre_items\": 14,
    \"filter_value\": \"zepdjvoqcpjcoqp\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/categories/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 22,
    "nbre_items": 14,
    "filter_value": "zepdjvoqcpjcoqp"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 22

nbre_items   integer  optional  

Example: 14

filter_value   string  optional  

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

Ajouter une catégorie de forum

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/forum/categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"opaogmzjgsb\",
    \"description\": \"Est doloremque omnis aut.\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/categories"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "opaogmzjgsb",
    "description": "Est doloremque omnis aut."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: opaogmzjgsb

description   string  optional  

Example: Est doloremque omnis aut.

Afficher les infos d'une catégorie de forum

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/forum/categories/17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/categories/17"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/forum/categories/17 could not be found."
}
 

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: 17

Modifier une catégorie de forum

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/forum/categories/11" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"yyqwvkpazcxehcdzdjf\",
    \"description\": \"Distinctio perferendis alias voluptas consequatur nesciunt voluptatum optio illo.\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/categories/11"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "yyqwvkpazcxehcdzdjf",
    "description": "Distinctio perferendis alias voluptas consequatur nesciunt voluptatum optio illo."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 11

Body Parameters

name   string  optional  

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

description   string  optional  

Example: Distinctio perferendis alias voluptas consequatur nesciunt voluptatum optio illo.

Archiver plusieurs categories de forum

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/forum/categories/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        3
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/categories/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        3
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/forum/categories/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        15
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/categories/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/forum/questions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 89,
    \"nbre_items\": 1,
    \"filter_value\": \"zvwjdr\",
    \"forum_category_id\": 19,
    \"user_id\": 16
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/questions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 89,
    "nbre_items": 1,
    "filter_value": "zvwjdr",
    "forum_category_id": 19,
    "user_id": 16
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 89

nbre_items   integer  optional  

Example: 1

filter_value   string  optional  

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

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: 16

Ajouter une question de forum

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/forum/questions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"forum_category_id\": 2,
    \"title\": \"niev\",
    \"body\": \"sapiente\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/questions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "forum_category_id": 2,
    "title": "niev",
    "body": "sapiente"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 2

title   string   

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

body   string   

Example: sapiente

Afficher les infos d'une question de forum

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/forum/questions/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/questions/10"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/forum/questions/10 could not be found."
}
 

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: 10

Modifier une question de forum

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/forum/questions/14" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"forum_category_id\": 1,
    \"title\": \"ngresjclbc\",
    \"body\": \"neque\",
    \"is_resolved\": false
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/questions/14"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "forum_category_id": 1,
    "title": "ngresjclbc",
    "body": "neque",
    "is_resolved": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 14

Body Parameters

forum_category_id   integer  optional  

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

title   string  optional  

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

body   string  optional  

Example: neque

is_resolved   boolean  optional  

Example: false

Archiver plusieurs questions de forum

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/forum/questions/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        20
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/questions/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        20
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/forum/questions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        15
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/questions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/forum/answers/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 60,
    \"nbre_items\": 5,
    \"filter_value\": \"qkzzikugmlnqlsy\",
    \"forum_category_id\": 8,
    \"forum_question_id\": 2,
    \"user_id\": 17
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/answers/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 60,
    "nbre_items": 5,
    "filter_value": "qkzzikugmlnqlsy",
    "forum_category_id": 8,
    "forum_question_id": 2,
    "user_id": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 60

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

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

forum_category_id   integer  optional  

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

forum_question_id   integer  optional  

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

user_id   integer  optional  

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

Ajouter une réponse à une question de forum

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/forum/answers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"forum_question_id\": 8,
    \"body\": \"id\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/answers"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "forum_question_id": 8,
    "body": "id"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 8

body   string   

Example: id

Afficher les infos d'une réponse à une question de forum

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/forum/answers/17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/answers/17"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/forum/answers/17 could not be found."
}
 

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: 17

Modifier une réponse à une question de forum

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/forum/answers/6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"forum_question_id\": 4,
    \"body\": \"in\",
    \"is_accepted\": false
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/answers/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "forum_question_id": 4,
    "body": "in",
    "is_accepted": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 6

Body Parameters

forum_question_id   integer  optional  

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

body   string  optional  

Example: in

is_accepted   boolean  optional  

Example: false

Archiver plusieurs questions de forum

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/forum/answers/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        10
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/answers/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/forum/answers/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        17
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/forum/answers/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        17
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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.

Médicaments

Gestion des médicaments

Lister les médicaments

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medications/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 52,
    \"nbre_items\": 4,
    \"filter_value\": \"cwoksbnkwzwlvygccq\",
    \"name\": \"qztypctpvcjuf\",
    \"trashed\": true
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 52,
    "nbre_items": 4,
    "filter_value": "cwoksbnkwzwlvygccq",
    "name": "qztypctpvcjuf",
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 52

nbre_items   integer  optional  

Example: 4

filter_value   string  optional  

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

name   string  optional  

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

trashed   boolean  optional  

Example: true

Ajout d'un médicament

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medications" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"gumryhwmxwkxqhyuwwid\",
    \"description\": \"Aut quod sit eligendi ut consequuntur fugiat.\",
    \"photo\": \"et\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "gumryhwmxwkxqhyuwwid",
    "description": "Aut quod sit eligendi ut consequuntur fugiat.",
    "photo": "et"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: gumryhwmxwkxqhyuwwid

description   string  optional  

Example: Aut quod sit eligendi ut consequuntur fugiat.

photo   string  optional  

Example: et

Afficher un médicament

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/medications/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/medications/1 could not be found."
}
 

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://cms.ms-hotel.net/api/medications/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"urvdyhmy\",
    \"description\": \"Rerum omnis provident beatae impedit.\",
    \"photo\": \"natus\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "urvdyhmy",
    "description": "Rerum omnis provident beatae impedit.",
    "photo": "natus"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: urvdyhmy

description   string  optional  

Example: Rerum omnis provident beatae impedit.

photo   string  optional  

Example: natus

Archiver plusieurs médicaments

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medications/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        11
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        11
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/medications/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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.

Nourritures

Gestion des nourritures

Lister les nourritures

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/foods/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 26,
    \"nbre_items\": 15,
    \"filter_value\": \"vhqmngjalftncypgflyx\",
    \"trashed\": false,
    \"name\": \"bpbwnbexsdaxrsjl\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/foods/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 26,
    "nbre_items": 15,
    "filter_value": "vhqmngjalftncypgflyx",
    "trashed": false,
    "name": "bpbwnbexsdaxrsjl"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 26

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

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

trashed   boolean  optional  

Example: false

name   string  optional  

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

Ajouter une nourriture

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/foods" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"hsyxpbkbxyxgxrqyug\",
    \"description\": \"Maiores impedit doloribus sit iusto eligendi.\",
    \"potassium_mg\": \"balqaxcjykyj\",
    \"sodium_mg\": \"rqdvyvreyoduahsfecbop\",
    \"phosphorus_mg\": \"hsckbtey\",
    \"photo\": \"zxqjwovguav\",
    \"food_alternatives\": [
        {
            \"alternative_id\": 4,
            \"reason\": \"seemncel\"
        }
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/foods"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "hsyxpbkbxyxgxrqyug",
    "description": "Maiores impedit doloribus sit iusto eligendi.",
    "potassium_mg": "balqaxcjykyj",
    "sodium_mg": "rqdvyvreyoduahsfecbop",
    "phosphorus_mg": "hsckbtey",
    "photo": "zxqjwovguav",
    "food_alternatives": [
        {
            "alternative_id": 4,
            "reason": "seemncel"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: hsyxpbkbxyxgxrqyug

description   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: Maiores impedit doloribus sit iusto eligendi.

potassium_mg   string  optional  

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

sodium_mg   string  optional  

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

phosphorus_mg   string  optional  

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

photo   string  optional  

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

food_alternatives   object[]  optional  
alternative_id   integer   

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

reason   string  optional  

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

Afficher une nourriture

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/foods/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/foods/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/foods/1 could not be found."
}
 

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: 1

Modifier une nourriture

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/foods/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"seogx\",
    \"description\": \"Maxime et in nihil qui sit aut.\",
    \"potassium_mg\": \"oznkcu\",
    \"sodium_mg\": \"upvoovukyekhtulmyexg\",
    \"phosphorus_mg\": \"mvbqchjqnxqellhcuer\",
    \"photo\": \"gwqzqxkrdxvhsabyrubcq\",
    \"food_alternatives\": [
        {
            \"alternative_id\": 14,
            \"reason\": \"tzwnxqioxhkcupsfwmrhk\"
        }
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/foods/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "seogx",
    "description": "Maxime et in nihil qui sit aut.",
    "potassium_mg": "oznkcu",
    "sodium_mg": "upvoovukyekhtulmyexg",
    "phosphorus_mg": "mvbqchjqnxqellhcuer",
    "photo": "gwqzqxkrdxvhsabyrubcq",
    "food_alternatives": [
        {
            "alternative_id": 14,
            "reason": "tzwnxqioxhkcupsfwmrhk"
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 1

Body Parameters

name   string  optional  

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

description   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: Maxime et in nihil qui sit aut.

potassium_mg   string  optional  

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

sodium_mg   string  optional  

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

phosphorus_mg   string  optional  

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

photo   string  optional  

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

food_alternatives   object[]  optional  
alternative_id   integer   

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

reason   string  optional  

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

Archiver plusieurs nourritures

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/foods/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        9
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/foods/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/foods/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        15
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/foods/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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.

Page Médicale

Gestion de pages d'un carnet médical

Lister les pagse de carnets médicaux

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medical-pages/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 35,
    \"nbre_items\": 20,
    \"filter_value\": \"cqhcfioxvrodcubymzs\",
    \"doctor_id\": 4,
    \"medical_book_id\": 10,
    \"department_id\": 2,
    \"consultation_date\": \"2025-06-02\",
    \"trashed\": true
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-pages/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 35,
    "nbre_items": 20,
    "filter_value": "cqhcfioxvrodcubymzs",
    "doctor_id": 4,
    "medical_book_id": 10,
    "department_id": 2,
    "consultation_date": "2025-06-02",
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 35

nbre_items   integer  optional  

Example: 20

filter_value   string  optional  

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

doctor_id   integer  optional  

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

medical_book_id   integer  optional  

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

department_id   integer  optional  

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

consultation_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

trashed   boolean  optional  

Example: true

Ajouter une page de carnet médical

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medical-pages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"medical_book_id\": 6,
    \"department_id\": 20,
    \"doctor_id\": 13,
    \"consultation_date\": \"2025-06-02\",
    \"reason_for_visit\": \"animi\",
    \"clinical_notes\": \"sit\",
    \"diagnosis\": \"qui\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-pages"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "medical_book_id": 6,
    "department_id": 20,
    "doctor_id": 13,
    "consultation_date": "2025-06-02",
    "reason_for_visit": "animi",
    "clinical_notes": "sit",
    "diagnosis": "qui"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 6

department_id   integer  optional  

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

doctor_id   integer   

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

consultation_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

reason_for_visit   string   

Example: animi

clinical_notes   string   

Example: sit

diagnosis   string   

Example: qui

prescription   string  optional  
recommendations   string  optional  

Afficher les infos d'une page de carnet médical

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/medical-pages/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-pages/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/medical-pages/1 could not be found."
}
 

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://cms.ms-hotel.net/api/medical-pages/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"medical_book_id\": 8,
    \"department_id\": 15,
    \"doctor_id\": 11,
    \"consultation_date\": \"2025-06-02\",
    \"reason_for_visit\": \"sunt\",
    \"clinical_notes\": \"at\",
    \"diagnosis\": \"quo\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-pages/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "medical_book_id": 8,
    "department_id": 15,
    "doctor_id": 11,
    "consultation_date": "2025-06-02",
    "reason_for_visit": "sunt",
    "clinical_notes": "at",
    "diagnosis": "quo"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 8

department_id   integer  optional  

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

doctor_id   integer  optional  

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

consultation_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

reason_for_visit   string  optional  

Example: sunt

clinical_notes   string  optional  

Example: at

diagnosis   string  optional  

Example: quo

prescription   string  optional  
recommendations   string  optional  

Archiver plusieurs medical_pages

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medical-pages/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        19
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-pages/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/medical-pages/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        8
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medical-pages/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/permissions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 59,
    \"nbre_items\": 3,
    \"filter_value\": \"in\",
    \"ressource\": \"natus\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/permissions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 59,
    "nbre_items": 3,
    "filter_value": "in",
    "ressource": "natus"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 59

nbre_items   integer  optional  

Example: 3

filter_value   string  optional  

Example: in

ressource   string  optional  

Example: natus

Ajouter une liste de permission

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/permissions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"permissions\": [
        {
            \"name\": \"sunt\",
            \"description\": \"Debitis dolorem et est voluptatem sapiente.\",
            \"ressource\": \"eaque\"
        }
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/permissions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "permissions": [
        {
            "name": "sunt",
            "description": "Debitis dolorem et est voluptatem sapiente.",
            "ressource": "eaque"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: sunt

description   string  optional  

Example: Debitis dolorem et est voluptatem sapiente.

ressource   string   

Example: eaque

Afficher une permission spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/permissions/quibusdam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/permissions/quibusdam"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/permissions/quibusdam could not be found."
}
 

Request      

GET api/permissions/{role}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

role   string   

Example: quibusdam

Mettre a jour une permission spécifique

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/permissions/quaerat" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"minima\",
    \"permissions\": [
        {
            \"description\": \"Distinctio pariatur unde sit voluptas quia.\",
            \"ressource\": \"et\"
        }
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/permissions/quaerat"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "minima",
    "permissions": [
        {
            "description": "Distinctio pariatur unde sit voluptas quia.",
            "ressource": "et"
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/permissions/{role}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

role   string   

Example: quaerat

Body Parameters

name   string   

Example: minima

permissions   object[]  optional  
description   string  optional  

Example: Distinctio pariatur unde sit voluptas quia.

ressource   string  optional  

Example: et

Prescriptions

Gestion des prescriptions

Lister les prescriptions

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/prescriptions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 65,
    \"nbre_items\": 10,
    \"filter_value\": \"czolmgqybgbhljbgacsedwhf\",
    \"patient_id\": 17,
    \"start_date\": \"2025-06-02\",
    \"end_date\": \"2025-06-02\",
    \"trashed\": true
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/prescriptions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 65,
    "nbre_items": 10,
    "filter_value": "czolmgqybgbhljbgacsedwhf",
    "patient_id": 17,
    "start_date": "2025-06-02",
    "end_date": "2025-06-02",
    "trashed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 65

nbre_items   integer  optional  

Example: 10

filter_value   string  optional  

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

patient_id   integer  optional  

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

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

trashed   boolean  optional  

Example: true

Ajouter une prescription

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/prescriptions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 16,
    \"start_date\": \"2025-06-02\",
    \"end_date\": \"2118-01-27\",
    \"frequency\": \"illum\",
    \"dosage\": \"dolorem\",
    \"description\": \"Ea soluta repellat ad quo placeat necessitatibus veniam.\",
    \"medications\": [
        {
            \"medication_id\": 9,
            \"dosage\": 49,
            \"frequency\": \"optio\",
            \"description\": \"Suscipit quo autem et ut ratione.\"
        }
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/prescriptions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 16,
    "start_date": "2025-06-02",
    "end_date": "2118-01-27",
    "frequency": "illum",
    "dosage": "dolorem",
    "description": "Ea soluta repellat ad quo placeat necessitatibus veniam.",
    "medications": [
        {
            "medication_id": 9,
            "dosage": 49,
            "frequency": "optio",
            "description": "Suscipit quo autem et ut ratione."
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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   

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

start_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

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: 2118-01-27

frequency   string  optional  

Example: illum

dosage   string  optional  

Example: dolorem

description   string   

Example: Ea soluta repellat ad quo placeat necessitatibus veniam.

medications   object[]   
medication_id   integer   

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

dosage   integer   

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

frequency   string   

Example: optio

description   string  optional  

Example: Suscipit quo autem et ut ratione.

Afficher les infos d'une prescription

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/prescriptions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/prescriptions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/prescriptions/1 could not be found."
}
 

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: 1

Modifier une prescription

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/prescriptions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 1,
    \"start_date\": \"2025-06-02\",
    \"end_date\": \"2122-10-20\",
    \"frequency\": \"delectus\",
    \"dosage\": \"necessitatibus\",
    \"description\": \"Possimus et autem minima libero consequatur atque.\",
    \"medical_page_id\": 19,
    \"medications\": [
        {
            \"medication_id\": 20,
            \"dosage\": 30,
            \"frequency\": \"ad\",
            \"description\": \"Quibusdam odio modi nisi dolore et repudiandae.\"
        }
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/prescriptions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 1,
    "start_date": "2025-06-02",
    "end_date": "2122-10-20",
    "frequency": "delectus",
    "dosage": "necessitatibus",
    "description": "Possimus et autem minima libero consequatur atque.",
    "medical_page_id": 19,
    "medications": [
        {
            "medication_id": 20,
            "dosage": 30,
            "frequency": "ad",
            "description": "Quibusdam odio modi nisi dolore et repudiandae."
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 1

Body Parameters

patient_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: 2025-06-02

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: 2122-10-20

frequency   string  optional  

Example: delectus

dosage   string  optional  

Example: necessitatibus

description   string  optional  

Example: Possimus et autem minima libero consequatur atque.

medications   object[]  optional  
medication_id   integer   

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

dosage   integer   

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

frequency   string   

Example: ad

description   string  optional  

Example: Quibusdam odio modi nisi dolore et repudiandae.

medical_page_id   integer  optional  

Example: 19

Archiver plusieurs prescriptions

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/prescriptions/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        14
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/prescriptions/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/prescriptions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        2
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/prescriptions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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.

Prises de Médicaments

Gestion des prises de médicaments

Lister les prises de médicaments

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medications-intakes/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 32,
    \"nbre_items\": 15,
    \"filter_value\": \"mxixyt\",
    \"trashed\": false,
    \"prescription_id\": 16,
    \"medication_id\": 8,
    \"start_date\": \"2025-06-02\",
    \"end_date\": \"2082-11-27\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications-intakes/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 32,
    "nbre_items": 15,
    "filter_value": "mxixyt",
    "trashed": false,
    "prescription_id": 16,
    "medication_id": 8,
    "start_date": "2025-06-02",
    "end_date": "2082-11-27"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 32

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

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

trashed   boolean  optional  

Example: false

prescription_id   integer  optional  

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

medication_id   integer  optional  

The id of an existing record in the medications table. 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: 2025-06-02

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: 2082-11-27

Ajouter une prise de médicament

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medications-intakes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"prescription_id\": 16,
    \"medication_id\": 5,
    \"is_taken\": true,
    \"date_time\": \"2025-06-02 16:53\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications-intakes"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "prescription_id": 16,
    "medication_id": 5,
    "is_taken": true,
    "date_time": "2025-06-02 16:53"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 16

medication_id   integer   

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

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: 2025-06-02 16:53

Afficher une prise de médicament

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/medications-intakes/11" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications-intakes/11"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/medications-intakes/11 could not be found."
}
 

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: 11

Modifier une prise de médicament

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/medications-intakes/20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"prescription_id\": 17,
    \"medication_id\": 11,
    \"is_taken\": true,
    \"date_time\": \"2025-06-02 16:53\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications-intakes/20"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "prescription_id": 17,
    "medication_id": 11,
    "is_taken": true,
    "date_time": "2025-06-02 16:53"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 20

Body Parameters

prescription_id   integer  optional  

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

medication_id   integer  optional  

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

is_taken   boolean  optional  

Example: true

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: 2025-06-02 16:53

Archiver plusieurs prises de médicaments

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/medications-intakes/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        3
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications-intakes/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        3
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/medications-intakes/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        7
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/medications-intakes/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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.

Recettes

Gestion des recettes

Lister les recettes

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/recipes/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 58,
    \"nbre_items\": 3,
    \"filter_value\": \"ojwzyduhukbrmugzlf\",
    \"is_low_potassium\": false,
    \"is_low_sodium\": false
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/recipes/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 58,
    "nbre_items": 3,
    "filter_value": "ojwzyduhukbrmugzlf",
    "is_low_potassium": false,
    "is_low_sodium": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 58

nbre_items   integer  optional  

Example: 3

filter_value   string  optional  

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

is_low_potassium   boolean  optional  

Example: false

is_low_sodium   boolean  optional  

Example: false

Ajouter une recette

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/recipes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"est\",
    \"description\": \"Eum et aut ipsum ex.\",
    \"instructions\": \"maxime\",
    \"preparation_time\": 17,
    \"servings\": 12,
    \"is_low_potassium\": false,
    \"is_low_sodium\": true,
    \"calories\": 16,
    \"sodium_mg\": 9,
    \"potassium_mg\": 19,
    \"photo\": \"ducimus\",
    \"foods\": [
        {
            \"food_id\": 4,
            \"quantity\": \"ipsa\",
            \"description\": \"Delectus quia excepturi qui voluptatum excepturi qui modi.\"
        }
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/recipes"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "est",
    "description": "Eum et aut ipsum ex.",
    "instructions": "maxime",
    "preparation_time": 17,
    "servings": 12,
    "is_low_potassium": false,
    "is_low_sodium": true,
    "calories": 16,
    "sodium_mg": 9,
    "potassium_mg": 19,
    "photo": "ducimus",
    "foods": [
        {
            "food_id": 4,
            "quantity": "ipsa",
            "description": "Delectus quia excepturi qui voluptatum excepturi qui modi."
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: est

description   string  optional  

Example: Eum et aut ipsum ex.

instructions   string  optional  

Example: maxime

preparation_time   integer  optional  

Example: 17

servings   integer  optional  

Example: 12

is_low_potassium   boolean  optional  

Example: false

is_low_sodium   boolean  optional  

Example: true

calories   integer  optional  

Example: 16

sodium_mg   integer  optional  

Example: 9

potassium_mg   integer  optional  

Example: 19

photo   string  optional  

Example: ducimus

foods   object[]   
food_id   integer   

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

quantity   string   

Example: ipsa

description   string  optional  

Example: Delectus quia excepturi qui voluptatum excepturi qui modi.

Afficher les infos d'une recette

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/recipes/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/recipes/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/recipes/1 could not be found."
}
 

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: 1

Modifier une recette

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/recipes/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"nobis\",
    \"description\": \"Rerum est enim odit dolorum qui ex nihil.\",
    \"instructions\": \"minus\",
    \"preparation_time\": \"ducimus\",
    \"servings\": \"in\",
    \"is_low_potassium\": true,
    \"is_low_sodium\": false,
    \"calories\": \"reiciendis\",
    \"sodium_mg\": \"non\",
    \"potassium_mg\": \"et\",
    \"photo\": \"repellat\",
    \"foods\": [
        {
            \"food_id\": 6,
            \"quantity\": \"et\",
            \"description\": \"Rerum corporis quisquam ex amet aliquid ipsum voluptas.\"
        }
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/recipes/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "nobis",
    "description": "Rerum est enim odit dolorum qui ex nihil.",
    "instructions": "minus",
    "preparation_time": "ducimus",
    "servings": "in",
    "is_low_potassium": true,
    "is_low_sodium": false,
    "calories": "reiciendis",
    "sodium_mg": "non",
    "potassium_mg": "et",
    "photo": "repellat",
    "foods": [
        {
            "food_id": 6,
            "quantity": "et",
            "description": "Rerum corporis quisquam ex amet aliquid ipsum voluptas."
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 1

Body Parameters

name   string  optional  

Example: nobis

description   string  optional  

Example: Rerum est enim odit dolorum qui ex nihil.

instructions   string  optional  

Example: minus

preparation_time   string  optional  

Example: ducimus

servings   string  optional  

Example: in

is_low_potassium   boolean  optional  

Example: true

is_low_sodium   boolean  optional  

Example: false

calories   string  optional  

Example: reiciendis

sodium_mg   string  optional  

Example: non

potassium_mg   string  optional  

Example: et

photo   string  optional  

Example: repellat

foods   object[]  optional  
food_id   integer   

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

quantity   string   

Example: et

description   string  optional  

Example: Rerum corporis quisquam ex amet aliquid ipsum voluptas.

Archiver plusieurs recettes

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/recipes/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/recipes/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/recipes/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        5
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/recipes/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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.

Rôles

Gestion des rôles

Lister les roles

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/roles/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 26,
    \"nbre_items\": 15,
    \"filter_value\": \"et\",
    \"types\": [
        \"voluptas\"
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/roles/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 26,
    "nbre_items": 15,
    "filter_value": "et",
    "types": [
        "voluptas"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 26

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Example: et

types   string[]  optional  

Ajouter une liste de role

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/roles" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ut\",
    \"permissions\": [
        17
    ],
    \"description\": \"Et perspiciatis maxime earum assumenda aut.\",
    \"type\": \"asperiores\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/roles"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ut",
    "permissions": [
        17
    ],
    "description": "Et perspiciatis maxime earum assumenda aut.",
    "type": "asperiores"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: Et perspiciatis maxime earum assumenda aut.

type   string  optional  

Example: asperiores

Afficher un role spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/roles/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/roles/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/roles/1 could not be found."
}
 

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://cms.ms-hotel.net/api/roles/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"et\",
    \"permissions\": [
        8
    ],
    \"description\": \"Quia qui nobis quia assumenda consequatur.\",
    \"type\": \"necessitatibus\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/roles/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "et",
    "permissions": [
        8
    ],
    "description": "Quia qui nobis quia assumenda consequatur.",
    "type": "necessitatibus"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: et

permissions   integer[]  optional  

The id of an existing record in the permissions table.

description   string  optional  

Example: Quia qui nobis quia assumenda consequatur.

type   string  optional  

Example: necessitatibus

Séances de dialyse

Gestion des séances de dialyse

Lister les séances de dialyse

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/dialysis-sessions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 74,
    \"nbre_items\": 6,
    \"filter_value\": \"asxezrayxlyycinury\",
    \"trashed\": true,
    \"patient_id\": 6,
    \"doctor_id\": 6,
    \"start_date\": \"2025-06-02\",
    \"end_date\": \"2042-03-29\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/dialysis-sessions/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 74,
    "nbre_items": 6,
    "filter_value": "asxezrayxlyycinury",
    "trashed": true,
    "patient_id": 6,
    "doctor_id": 6,
    "start_date": "2025-06-02",
    "end_date": "2042-03-29"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 74

nbre_items   integer  optional  

Example: 6

filter_value   string  optional  

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

trashed   boolean  optional  

Example: true

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: 6

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2025-06-02

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: 2042-03-29

Ajouter une séance de dialyse

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/dialysis-sessions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 1,
    \"doctor_id\": 17,
    \"session_start\": \"reprehenderit\",
    \"session_end\": \"qui\",
    \"weight_before\": \"rerum\",
    \"weight_after\": \"incidunt\",
    \"fluid_removed\": \"nihil\",
    \"blood_pressure_post\": \"ea\",
    \"side_effects\": \"ratione\",
    \"description\": \"Et sunt rerum delectus vel eum.\",
    \"observation\": \"in\",
    \"status\": \"done\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/dialysis-sessions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 1,
    "doctor_id": 17,
    "session_start": "reprehenderit",
    "session_end": "qui",
    "weight_before": "rerum",
    "weight_after": "incidunt",
    "fluid_removed": "nihil",
    "blood_pressure_post": "ea",
    "side_effects": "ratione",
    "description": "Et sunt rerum delectus vel eum.",
    "observation": "in",
    "status": "done"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 1

doctor_id   integer   

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

session_start   string   

Example: reprehenderit

session_end   string  optional  

Example: qui

weight_before   string  optional  

Example: rerum

weight_after   string  optional  

Example: incidunt

fluid_removed   string  optional  

Example: nihil

blood_pressure_post   string  optional  

Example: ea

side_effects   string  optional  

Example: ratione

description   string  optional  

Example: Et sunt rerum delectus vel eum.

observation   string  optional  

Example: in

status   string  optional  

Example: done

Must be one of:
  • pending
  • done
  • cancelled

Afficher une séance de dialyse

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/dialysis-sessions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/dialysis-sessions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/dialysis-sessions/1 could not be found."
}
 

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: 1

Modifier une séance de dialyse

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/dialysis-sessions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 17,
    \"doctor_id\": 12,
    \"session_start\": \"voluptatum\",
    \"session_end\": \"molestiae\",
    \"blood_pressure_post\": \"nobis\",
    \"side_effects\": \"sint\",
    \"status\": \"pending\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/dialysis-sessions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 17,
    "doctor_id": 12,
    "session_start": "voluptatum",
    "session_end": "molestiae",
    "blood_pressure_post": "nobis",
    "side_effects": "sint",
    "status": "pending"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 1

Body Parameters

patient_id   integer  optional  

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

doctor_id   integer  optional  

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

session_start   string  optional  

Example: voluptatum

session_end   string  optional  

Example: molestiae

weight_before   string  optional  
weight_after   string  optional  
fluid_removed   string  optional  
blood_pressure_post   string  optional  

Example: nobis

side_effects   string  optional  

Example: sint

status   string  optional  

Example: pending

Must be one of:
  • pending
  • done
  • cancelled

Archiver plusieurs séances de dialyse

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/dialysis-sessions/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        11
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/dialysis-sessions/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        11
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/dialysis-sessions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        20
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/dialysis-sessions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        20
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/upload-photo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"photo\": \"i\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/upload-photo"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "photo": "i"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: i

Utilisateurs

Gestion des utilisateurs

Fonction qui permet de recuperer la liste des utilisateurs

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/users/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"role_id\": 13,
    \"page_items\": 66,
    \"nbre_items\": 6,
    \"filter_value\": \"ut\",
    \"in_order_name\": false,
    \"health_center_id\": 7,
    \"department_id\": 14,
    \"coverage_type\": \"obligatory\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/users/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "role_id": 13,
    "page_items": 66,
    "nbre_items": 6,
    "filter_value": "ut",
    "in_order_name": false,
    "health_center_id": 7,
    "department_id": 14,
    "coverage_type": "obligatory"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 13

page_items   integer  optional  

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

nbre_items   integer  optional  

Example: 6

filter_value   string  optional  

Example: ut

in_order_name   boolean  optional  

Example: false

health_center_id   integer  optional  

Example: 7

department_id   integer  optional  

Example: 14

coverage_type   string  optional  

Example: obligatory

Must be one of:
  • obligatory
  • complementary

Fonction qui permet d'ajouter un utilisateur sans passer par la verification

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/users" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"username\": \"bevkzrblmf\",
    \"firstname\": \"hioqmtxwcdmndsfz\",
    \"lastname\": \"jwhyjesbmrwsgaecvvew\",
    \"gender\": \"male\",
    \"birthday\": \"2025-06-02T16:53:01\",
    \"nationality\": \"nsiod\",
    \"nui\": \"avhqvjpfgkpisesyhlpkmhh\",
    \"niss\": \"pidagyhakchthdkcyocgeoepm\",
    \"email\": \"amckenzie@example.com\",
    \"phone\": \"eotkniwalefw\",
    \"phone2\": \"bxtdfgcnugvnqe\",
    \"city\": \"hm\",
    \"address\": \"fgad\",
    \"country\": \"vaocbqeudspz\",
    \"password\": \"\\\"}2O_52_\",
    \"photo\": \"ut\",
    \"specialty\": \"dwodtgbdt\",
    \"license_number\": \"omvfoelbxtyucpoialc\",
    \"years_of_experience\": 39,
    \"work_schedule\": \"nimrpk\",
    \"role_id\": 20,
    \"health_center_id\": 8,
    \"department_id\": 20,
    \"mutuality_number\": \"ebxiinbxmzhhqfbxckaoenls\",
    \"coverage_type\": \"obligatory\",
    \"guardian_name\": \"pijbhiqy\",
    \"guardian_contact\": \"rwvszza\",
    \"guardian_relation\": \"vngfjngkgey\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": "bevkzrblmf",
    "firstname": "hioqmtxwcdmndsfz",
    "lastname": "jwhyjesbmrwsgaecvvew",
    "gender": "male",
    "birthday": "2025-06-02T16:53:01",
    "nationality": "nsiod",
    "nui": "avhqvjpfgkpisesyhlpkmhh",
    "niss": "pidagyhakchthdkcyocgeoepm",
    "email": "amckenzie@example.com",
    "phone": "eotkniwalefw",
    "phone2": "bxtdfgcnugvnqe",
    "city": "hm",
    "address": "fgad",
    "country": "vaocbqeudspz",
    "password": "\"}2O_52_",
    "photo": "ut",
    "specialty": "dwodtgbdt",
    "license_number": "omvfoelbxtyucpoialc",
    "years_of_experience": 39,
    "work_schedule": "nimrpk",
    "role_id": 20,
    "health_center_id": 8,
    "department_id": 20,
    "mutuality_number": "ebxiinbxmzhhqfbxckaoenls",
    "coverage_type": "obligatory",
    "guardian_name": "pijbhiqy",
    "guardian_contact": "rwvszza",
    "guardian_relation": "vngfjngkgey"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: bevkzrblmf

firstname   string   

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

lastname   string  optional  

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

gender   string   

Example: male

Must be one of:
  • male
  • female
birthday   string  optional  

Le champ value doit être une date valide. Example: 2025-06-02T16:53:01

nationality   string  optional  

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

nui   string  optional  

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

niss   string  optional  

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

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: amckenzie@example.com

phone   string  optional  

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

phone2   string  optional  

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

city   string  optional  

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

address   string  optional  

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

country   string  optional  

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

password   string   

Le champ value doit contenir au moins 6 caractères. Example: "}2O_52_

photo   string  optional  

Example: ut

specialty   string  optional  

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

license_number   string  optional  

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

years_of_experience   integer  optional  

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

work_schedule   string  optional  

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

role_id   integer   

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

health_center_id   integer  optional  

Example: 8

department_id   integer  optional  

Example: 20

mutuality_number   string  optional  

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

coverage_type   string  optional  

Example: obligatory

Must be one of:
  • obligatory
  • complementary
guardian_name   string  optional  

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

guardian_contact   string  optional  

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

guardian_relation   string  optional  

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

Cette route permet d'afficher les informations d'un utilisateur

requires authentication

Example request:
curl --request GET \
    --get "https://cms.ms-hotel.net/api/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://cms.ms-hotel.net/api/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The route api/users/1 could not be found."
}
 

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://cms.ms-hotel.net/api/users/update-password/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \";U9y].,\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/users/update-password/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "password": ";U9y].,"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: ;U9y].,

Fonction permettant de mettre à jour les informations d'un utilisateur

requires authentication

Example request:
curl --request PUT \
    "https://cms.ms-hotel.net/api/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"firstname\": \"jknekkerwqrnevfgbtsknrmu\",
    \"lastname\": \"qjdudhraftwpxnpxvzzmr\",
    \"gender\": \"female\",
    \"birthday\": \"2025-06-02T16:53:01\",
    \"nationality\": \"xcdybegygjknjcrbzh\",
    \"nui\": \"kmnewcl\",
    \"niss\": \"qsurvbkuiciugg\",
    \"connexion_type\": \"email\",
    \"email\": \"tyson.larkin@example.com\",
    \"phone\": \"d\",
    \"phone2\": \"hsqraqag\",
    \"city\": \"x\",
    \"address\": \"nkpnnh\",
    \"country\": \"apfbsbwy\",
    \"password\": \"Wh6o\\/gglI`FrS;Y[}\",
    \"photo\": \"possimus\",
    \"specialty\": \"bqfaljudfy\",
    \"license_number\": \"jbucewmhqy\",
    \"years_of_experience\": 76,
    \"work_schedule\": \"ik\",
    \"role_id\": 4,
    \"health_center_id\": 10,
    \"department_id\": 20,
    \"mutuality_number\": \"acxdjfsyjsfkbnhejrbwaagh\",
    \"coverage_type\": \"complementary\",
    \"guardian_name\": \"myuaxvidweaojqnli\",
    \"guardian_contact\": \"dwekamexspqxgfzs\",
    \"guardian_relation\": \"soavshlmhkrnweeondpt\"
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "firstname": "jknekkerwqrnevfgbtsknrmu",
    "lastname": "qjdudhraftwpxnpxvzzmr",
    "gender": "female",
    "birthday": "2025-06-02T16:53:01",
    "nationality": "xcdybegygjknjcrbzh",
    "nui": "kmnewcl",
    "niss": "qsurvbkuiciugg",
    "connexion_type": "email",
    "email": "tyson.larkin@example.com",
    "phone": "d",
    "phone2": "hsqraqag",
    "city": "x",
    "address": "nkpnnh",
    "country": "apfbsbwy",
    "password": "Wh6o\/gglI`FrS;Y[}",
    "photo": "possimus",
    "specialty": "bqfaljudfy",
    "license_number": "jbucewmhqy",
    "years_of_experience": 76,
    "work_schedule": "ik",
    "role_id": 4,
    "health_center_id": 10,
    "department_id": 20,
    "mutuality_number": "acxdjfsyjsfkbnhejrbwaagh",
    "coverage_type": "complementary",
    "guardian_name": "myuaxvidweaojqnli",
    "guardian_contact": "dwekamexspqxgfzs",
    "guardian_relation": "soavshlmhkrnweeondpt"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: jknekkerwqrnevfgbtsknrmu

lastname   string  optional  

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

gender   string  optional  

Example: female

Must be one of:
  • male
  • female
birthday   string  optional  

Le champ value doit être une date valide. Example: 2025-06-02T16:53:01

nationality   string  optional  

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

nui   string  optional  

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

niss   string  optional  

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

connexion_type   string  optional  

Example: email

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: tyson.larkin@example.com

phone   string  optional  

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

phone2   string  optional  

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

city   string  optional  

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

address   string  optional  

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

country   string  optional  

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

password   string  optional  

Le champ value doit contenir au moins 6 caractères. Example: Wh6o/gglIFrS;Y[}`

photo   string  optional  

Example: possimus

specialty   string  optional  

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

license_number   string  optional  

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

years_of_experience   integer  optional  

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

work_schedule   string  optional  

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

role_id   integer  optional  

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

health_center_id   integer  optional  

Example: 10

department_id   integer  optional  

Example: 20

mutuality_number   string  optional  

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

coverage_type   string  optional  

Example: complementary

Must be one of:
  • obligatory
  • complementary
guardian_name   string  optional  

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

guardian_contact   string  optional  

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

guardian_relation   string  optional  

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

Fonction pour le multiple archivage des utilisateurs

requires authentication

Example request:
curl --request POST \
    "https://cms.ms-hotel.net/api/users/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_ids\": [
        1
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/users/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/users/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_ids\": [
        11
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/users/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_ids": [
        11
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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://cms.ms-hotel.net/api/users/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_ids\": [
        14
    ]
}"
const url = new URL(
    "https://cms.ms-hotel.net/api/users/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_ids": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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