<!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> <h1>Documentation API (Charlotte Raulin et Liang WU)</h1> </header> <body> <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> <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_aliments</td> <td>Permet d'afficher la liste des aliments </td> </tr> <tr> <td>Ajouter</td> <td>POST</td> <td>json</td> <td>/create_aliment.php</td> <td>Permet d'ajouter un aliment </td> </tr> <tr> <td>Supprimer</td> <td>DELETE</td> <td></td> <td>/delete_aliment.php</td> <td>Permet de supprimer un aliment de la liste des aliments </td> </tr> <tr> <td>Modifier</td> <td>UPDATE</td> <td>json</td> <td>/create_aliment.php</td> <td>Permet de modifier un aliment </td> </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> </table> </body> </html>