Commit cb2e8352 authored by Raulin's avatar Raulin

doc

parent 1d54b83a
doc/MLD.png

65.3 KB

<!doctype html> <html> <!doctype html>
<html>
<head> <head>
<meta charset="utf-8" />
<title id="hearts">Site web</title> <title id="hearts">Site web</title>
<link rel="stylesheet" href="bootstrap/css/freelancer.css" type="text/css" <link rel="stylesheet" href="bootstrap/css/freelancer.css" type="text/css"
media="screen" title="default" charset="utf-8" /> </head> media="screen" title="default" charset="utf-8" /> </head>
<header> <header>
Documentation API (Charlotte Raulin et Liang WU) <h1>Documentation API (Charlotte Raulin et Liang WU)</h1>
</header> </header>
<body> <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> <p></p>
<br>
<h2>CRUD ALIMENTS</h2><br>
<table> <table>
<thead> <thead>
<tr> <tr>
...@@ -25,31 +29,67 @@ media="screen" title="default" charset="utf-8" /> </head> ...@@ -25,31 +29,67 @@ media="screen" title="default" charset="utf-8" /> </head>
<td>Afficher</td> <td>Afficher</td>
<td>GET</td> <td>GET</td>
<td></td> <td></td>
<td>/aliments</td> <td>/read_aliments</td>
<td>Permet d'afficher la liste des aliments </td> <td>Permet d'afficher la liste des aliments </td>
</tr> </tr>
<tr> <tr>
<td>Ajouter</td> <td>Ajouter</td>
<td>POST</td> <td>POST</td>
<td>json</td> <td>json</td>
<td>/aliments</td> <td>/create_aliment.php</td>
<td>Permet d'ajouter un aliment </td> <td>Permet d'ajouter un aliment </td>
</tr> </tr>
<tr> <tr>
<td>Supprimer</td> <td>Supprimer</td>
<td>DELETE</td> <td>DELETE</td>
<td></td> <td></td>
<td>/aliments/id</td> <td>/delete_aliment.php</td>
<td>Permet de supprimer un aliment de la liste des aliments </td> <td>Permet de supprimer un aliment de la liste des aliments </td>
</tr> </tr>
<tr> <tr>
<td>Modifier</td> <td>Modifier</td>
<td>PUT</td> <td>UPDATE</td>
<td>json</td> <td>json</td>
<td>/aliments/id</td> <td>/create_aliment.php</td>
<td>Permet de modifier un aliment </td> <td>Permet de modifier un aliment </td>
</tr> </tr>
</tbody>
</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> </tbody>
</table> </table>
......
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