Skip to main content

Node Default API Endpoints

Every node will have the following endpoints available by default at the defined service node address:

app.get("/", heartbeat);
app.get("/nodes/:taskId", nodes);"/register-node/:taskId", registerNode);
app.get("/get-all-running-tasks", getAllRunningTasks);

To only test your endpoint locally, you can use the following command:

npm run start


npm start

registerNode is used by node discovery to automatically register your node to other nodes and vice versa.