Commit cb2e8352 authored by Raulin's avatar Raulin

doc

parent 1d54b83a
doc/MLD.png

65.3 KB

<!doctype html> <html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title id="hearts">Site web</title>
<link rel="stylesheet" href="bootstrap/css/freelancer.css" type="text/css"
media="screen" title="default" charset="utf-8" /> </head>
<header>
Documentation API (Charlotte Raulin et Liang WU)
<h1>Documentation API (Charlotte Raulin et Liang WU)</h1>
</header>
<body>
<p>Le REST endpoint est https://eden.imt-lille-douai.fr/~prenom.nom/projet_idaw </p>
<p>Le REST endpoint est https://eden.imt-lille-douai.fr/~charlotte.raulin/Projet/api </p>
<p></p>
<br>
<h2>CRUD ALIMENTS</h2><br>
<table>
<thead>
<tr>
......@@ -25,33 +29,69 @@ media="screen" title="default" charset="utf-8" /> </head>
<td>Afficher</td>
<td>GET</td>
<td></td>
<td>/aliments</td>
<td>/read_aliments</td>
<td>Permet d'afficher la liste des aliments </td>
</tr>
<tr>
<td>Ajouter</td>
<td>POST</td>
<td>json</td>
<td>/aliments</td>
<td>/create_aliment.php</td>
<td>Permet d'ajouter un aliment </td>
</tr>
<tr>
<td>Supprimer</td>
<td>DELETE</td>
<td></td>
<td>/aliments/id</td>
<td>/delete_aliment.php</td>
<td>Permet de supprimer un aliment de la liste des aliments </td>
</tr>
<tr>
<td>Modifier</td>
<td>PUT</td>
<td>UPDATE</td>
<td>json</td>
<td>/aliments/id</td>
<td>/create_aliment.php</td>
<td>Permet de modifier un aliment </td>
</tr>
</tbody>
</table>
</table><br><br>
<h2>CRUD JOURNAL</h2><br>
<table>
<thead>
<tr>
<th>Action</th>
<th>HTTP</th>
<th>Payload</th>
<th>URL</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Afficher</td>
<td>GET</td>
<td></td>
<td>/read_journal</td>
<td>Permet d'afficher les éléments du journal </td>
</tr>
<tr>
<td>Ajouter</td>
<td>POST</td>
<td>json</td>
<td>/create_journal.php</td>
<td>Permet d'ajouter un élément au journal</td>
</tr>
<tr>
<td>Supprimer</td>
<td>DELETE</td>
<td></td>
<td>/delete_journal.php</td>
<td>Permet de supprimer un élément du journal</td>
</tr>
</tbody>
</table>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment