Keksoj / abitbol-api

Une API simple pour s'amuser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

L'API Abitbol

comment apprendre les APIs sans se prendre au sérieux.

Pour inclure une citation aléatoire de la Classe Américaine dans votre site, recopiez ça dans votre html :

<div id="place"></div>
<script>
  fetch("http://54.37.75.123:4000/abitbol")
    .then(response => response.text())
    .then(result => (document.getElementById("place").innerHTML = result));
</script>

Mieux, faites tourner ça sur votre propre machine (il faut nodeJS installé) :

git clone https://github.com/keksoj/abitbol-api.git
cd abitbol-api
node index.js

Et vérifiez que ça fonctionne avec curl:

curl http://localhost:4000/abitbol

About

Une API simple pour s'amuser


Languages

Language:JavaScript 100.0%