SiaFoundation / siad

The Sia daemon
https://sia.tech
MIT License
130 stars 28 forks source link

Add HostDB API endpoints #125

Closed chris124567 closed 2 years ago

chris124567 commented 2 years ago

Adds HostDB API endpoints in renterd.

GET  /api/hostdb                  (list all host pubkeys; should use some form of pagination)
GET  /api/hostdb/:pk              (lookup a host in the DB)
PUT  /api/hostdb/:pk/score        (set the host's score)
POST /api/hostdb/:pk/interaction  (record an interaction)
chris124567 commented 2 years ago

Rebased to latest v2-devel, Should be ready to merge now.

chris124567 commented 2 years ago

:+1: