Skip to content

Latest commit

 

History

History
283 lines (211 loc) · 8.17 KB

API.md

File metadata and controls

283 lines (211 loc) · 8.17 KB

API Reference

Table of Contents
  1. Back to main
  2. Entreprises api
  3. Employes api
  4. Rebrique api
  5. Fiches api

Entreprises

Get all entreprises

  POST /api/entreprise
Parameter Type Description
search string Optional. Search for entreprise

Get entreprise

  POST /api/entreprise/{id}
Parameter Type Description
id string Required. Id of entreprise to fetch

add entreprise

  POST /api/entreprise/add
Parameter Type Description
titre string Required. Titre of entreprise to add
matricule_fiscale string Required. matricule fiscale of entreprise to add
registre_commerce string Required. registre commerce of entreprise to add
adresse string Required. adresse fiscale of entreprise to add
ville string Required. ville fiscale of entreprise to add
activités string Required. activités fiscale of entreprise to add

update entreprise

  PUT /api/entreprise/{id}
Parameter Type Description
id string Required. Id of entreprise to update
titre string Optional. Titre of entreprise to update
matricule_fiscale string Optional. matricule fiscale of entreprise to update
registre_commerce string Optional. registre commerce of entreprise to update
adresse string Optional. adresse fiscale of entreprise to update
ville string Optional. ville fiscale of entreprise to update
activités string Optional. activités fiscale of entreprise to update

delete entreprise

  DELETE /api/entreprise/{id}
Parameter Type Description
id string Required. Id of entreprise to delete

Employes

Get all employes

  POST /api/employe
Parameter Type Description
search string Optional. Search for employe

Get employe

  POST /api/employe/{id}
Parameter Type Description
id string Required. Id of employe to fetch

add employe

  POST /api/employe/add
Parameter Type Description
nom string Required. nom of employe to add
prenom string Required. prenom of employe to add
cin string Required. cin of employe to add
mat_cnss string Required. matricule cnss fiscale of employe to add
fonction string Required. fonction fiscale of employe to add
entreprise_id string Required. entreprise_id fiscale of employe to add

update employe

  PUT /api/employe/{id}
Parameter Type Description
id string Required. Id of employe to update
nom string Optional. nom of employe to update
prenom string Optional. prenom of employe to update
cin string Optional. cin of employe to update
mat_cnss string Optional. matricule cnss fiscale of employe to update
fonction string Optional. fonction fiscale of employe to update
entreprise_id string Optional. entreprise_id fiscale of employe to update

delete employe

  DELETE /api/employe/{id}
Parameter Type Description
id string Required. Id of employe to delete

Rebriques

Get all rebriques

  GET /api/rebrique
Parameter Type Description

add rebrique

  POST /api/rebrique/
Parameter Type Description
titre string Required. titre of rebrique to add

update rebrique

  PUT /api/rebrique/{id}
Parameter Type Description
id string Required. Id of rebrique to update
titre string Optional. titre of rebrique to update

delete rebrique

  DELETE /api/rebrique/{id}
Parameter Type Description
id string Required. Id of rebrique to delete

Fiches

Get all fiches

  POST /api/fiche
Parameter Type Description
search string Optional. Search for fiche

Get fiche

  POST /api/fiche/{id}
Parameter Type Description
id string Required. Id of fiche to fetch

add fiche

  POST /api/fiche/add
Parameter Type Description
date date Required. date of fiche to add
employe_id string Required. employe_id of fiche to add

update fiche

  PUT /api/fiche/{id}
Parameter Type Description
id string Required. Id of fiche to update
date date Optional. date of fiche to add
employe_id string Optional. employe_id of fiche to add

delete fiche

  DELETE /api/fiche/{id}
Parameter Type Description
id string Required. Id of fiche to delete