Skip to content
Snippets Groups Projects
Select Git revision
  • 12d8bc3ebae48128c80fc1ce64453c9389ee32da
  • main default protected
  • py2-backport
  • tags/release-0.5_final
  • tags/release-0.4_final
  • tags/release-0.4_r2
  • tags/release-0.3
7 results

protocols

  • Clone with SSH
  • Clone with HTTPS
  • ServerHTTP

    Simple HTTP elixir server designed for the BMA (basic Merkle API) of duniter (nswers to some Duniter HTTP requests, testing database manipulations and a beginning of processing distribution).

    To start :

    mix deps.get iex -S mix

    Send requests

    in a shell : for a http get method : curl -v "http adress" example : curl -v "http://localhost:8085/node/summary" curl -v "http://localhost:8085/node/sandboxes"

    for a http post method : curl -v -H 'Content-Type: application/json' "http adress" -d 'json object' example : curl -v -H 'Content-Type: application/json' "http://localhost:8085/wot/certify" -d '{"uid": "yourUID","from_pubkey": "yourFromPubkey","pubkey":"yourPubkey" }' curl -v -H 'Content-Type: application/json' "http://localhost:8085/wot/add" -d '{"uid": "yourUID","member": false,"pubkey":"yourPubkey" }'