api de gestion de ticket, basé sur php-crud-api. Le but est de décorrélé les outils de gestion des données, afin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

client.html 455B

123456789101112131415
  1. <html>
  2. <head>
  3. <script src="../lib/php_crud_api_transform.js"></script>
  4. <script>
  5. function callback(jsonObject) {
  6. jsonObject = php_crud_api_transform(jsonObject);
  7. document.getElementById('output').innerHTML = JSON.stringify(jsonObject, undefined, 4);
  8. }
  9. </script>
  10. <script src="http://localhost/api.php/posts?include=categories,tags,comments&filter=id,eq,1&callback=callback" defer="defer"></script>
  11. </head>
  12. <body>
  13. <pre id="output"></pre>
  14. </body>
  15. </html>