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.

vanilla.html 510B

1234567891011121314151617181920
  1. <html>
  2. <head>
  3. <script>
  4. var xhttp = new XMLHttpRequest();
  5. xhttp.onreadystatechange = function() {
  6. if (this.readyState == 4 && this.status == 200) {
  7. console.log(this.responseText);
  8. jsonObject = JSON.parse(this.responseText);
  9. document.getElementById('output').innerHTML = JSON.stringify(jsonObject, undefined, 4);
  10. }
  11. };
  12. xhttp.open("GET", "/api.php/records/posts?join=categories&join=tags&join=comments&filter=id,eq,1", true);
  13. xhttp.send();
  14. </script>
  15. </head>
  16. <body>
  17. <pre id="output"></pre>
  18. </body>
  19. </html>