Skip to content
Snippets Groups Projects
Select Git revision
  • 49d96c7c3ddb2ab6b42a1f5ed81d4fef8469d884
  • 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
x18zhan2 authored
49d96c7c
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" }'