Skip to content
Snippets Groups Projects
Commit 370f62e4 authored by FERRIEUX Etienne's avatar FERRIEUX Etienne
Browse files

.md

parent cc3e9aea
No related branches found
No related tags found
No related merge requests found
......@@ -4,17 +4,17 @@ Simple server simulating answers to some Duniter HTTP requests, testing database
## Installation
make install
make run
make install<br />
make run<br />
The make install command will try to install postgres and change user "postgres" password to "postgres".
Then it will get dependencies and create the databases.
Then it will get dependencies and create the databases.<br />
If you have already completed any of these step, refer to the Makefile. make drop & make create to refresh de db, make run to start the server.
If you have already completed any of these step, refer to the Makefile. make drop & make create to refresh de db, make run to start the server.<br />
## Send requests
curl -v "http://localhost:8085/node/summary"
curl -v "http://localhost:8085/node/sandboxes"
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" }'
curl -v "http://localhost:8085/node/summary"<br />
curl -v "http://localhost:8085/node/sandboxes"<br />
curl -v -H 'Content-Type: application/json' "http://localhost:8085/wot/certify" -d '{"uid": "yourUID","from_pubkey": "yourFromPubkey","pubkey":"yourPubkey" }'<br />
curl -v -H 'Content-Type: application/json' "http://localhost:8085/wot/add" -d '{"uid": "yourUID","member": false,"pubkey":"yourPubkey" }'<br />
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment