The RobinNet API is used by:
Base path:
/api/v1/
Endpoint:
GET /api/v1/health
Returns local node information.
GET /api/v1/messages
Python example:
import requests r = requests.get("http://localhost:8080/api/v1/messages") print(r.json())
POST /api/v1/messages/bulletin
Python example:
import requests payload = { "title": "Water Distribution", "body": "Town Hall from 10:00 to 16:00" } requests.post( "http://localhost:8080/api/v1/messages/bulletin", json=payload )
POST /api/v1/messages/fetch
Payload:
{
"msg_uuids": ["uuid1","uuid2"]
}
POST /api/v1/messages/import
Used internally during peer synchronization.