Skip to content
Snippets Groups Projects
Select Git revision
  • 7be8edaa535a11d253484a709ae7831cf85a6148
  • dev default protected
  • 192-validation-locale
  • 219-gestion-bdd
  • 218-documenter-code
  • 190-verification-de-la-presence-en-bdd-d-un-bloc
  • 186-recuperation-des-blocs
  • 185-retransmission-a-toutes-les-connexions-ws2p-actives
  • 185-retransmission-a-toutes-les-connexions-ws2P-actives
  • 184-ajout-dans-la-piscine
  • 181-add-doc-generation-in-ci-cd
  • 183-verification-de-l-existence-dans-la-piscine-sandbox-mempool
  • 211-rewrite-tests-identity-augmentation-excludedismember_test-exs
  • 209-scenario-2
  • http/blockchain/hardship
  • clean_count_member_test
  • readme
  • make_CI_work
  • correct_theo
  • t19tembo
  • noemie
  • fin-projet-2021-2022
  • fin_UE_CAD_2022
  • fin-projet-2020-2021
24 results

dunixir

user avatar
Julien29121998 authored
7be8edaa
History

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" }'