Receive and send things
git clone https://github.com/underr/ricevi.git
npm install
Copy config.example.js
to config.js
, configure it and run node .
/ricevi
will return items in alphabetical order.
/ricevi/random
will return a random item.
/ricevi/id/${id}
will return given ID item
/sendi
only takes a data parameter, which may contain a string. You can send it with curl, for example: curl -d "data=Testing" http://localhost:5000/sendi
You can send private data (POST) at /sendi/privata
, you'll get a secret key after sending it.
Receive (GET) it at /ricevi/privata/${secret key}
. For example, http://localhost:5000/ricevi/privata/TsSfUXc8sL5tMxmiWqzd1um58hIFO3