Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dunixir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RUANO RINCON Santiago
dunixir
Commits
370f62e4
Commit
370f62e4
authored
4 years ago
by
FERRIEUX Etienne
Browse files
Options
Downloads
Patches
Plain Diff
.md
parent
cc3e9aea
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
simple_server/README.md
+8
-8
8 additions, 8 deletions
simple_server/README.md
with
8 additions
and
8 deletions
simple_server/README.md
+
8
−
8
View file @
370f62e4
...
...
@@ -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
/>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment