update api docs endpoint
This commit is contained in:
parent
d90d4b0b28
commit
8cc0d4bd83
1 changed files with 36 additions and 0 deletions
36
src/index.js
36
src/index.js
|
|
@ -94,10 +94,46 @@ app.get('/api', async (req, res) => {
|
|||
"path": "/api/v1/nodes",
|
||||
"description": "Meshtastic nodes in JSON format.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/nodes/:nodeId",
|
||||
"description": "Meshtastic node info in JSON format.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/nodes/:nodeId/device-metrics",
|
||||
"description": "Device metrics for a meshtastic node in JSON format.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/nodes/:nodeId/environment-metrics",
|
||||
"description": "Environment metrics for a meshtastic node in JSON format.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/nodes/:nodeId/power-metrics",
|
||||
"description": "Power metrics for a meshtastic node in JSON format.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/nodes/:nodeId/neighbours",
|
||||
"description": "Neighbours for a meshtastic node in JSON format.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/nodes/:nodeId/traceroutes",
|
||||
"description": "Trace Routes for a meshtastic node in JSON format.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/nodes/:nodeId/position-history",
|
||||
"description": "Position history for a meshtastic node in JSON format.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/stats/hardware-models",
|
||||
"description": "Database statistics about hardware models in JSON format.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/text-messages",
|
||||
"description": "Meshtastic text messages in JSON format.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/text-messages/embed",
|
||||
"description": "Meshtastic text messages rendered as an HTML page.",
|
||||
},
|
||||
{
|
||||
"path": "/api/v1/waypoints",
|
||||
"description": "Meshtastic waypoints in JSON format.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue