Resolve "Implement REST endpoints for SPOs"
Two routes have been implemented:
-
GET /api/v1/spo/devices
:
This endpoint fetches and filters nodes in DHT which are capable of running cardano node.
-
POST /api/v1/spo/deploy/:nodeID
:
The /devices
route returns JSON object with metadata about a node. :nodeID
can be taken from there. At current moment, this endpoint also expects query parameter deployment_type
, which is either of auto
or manual
. A typical call would look something like this:
POST /api/v1/spo/deploy/:nodeID?deployment_type=manual
Closes #28 (closed) #44 (closed)
Edited by Santosh Kumar