swarm-dashboard
swarm-dashboard copied to clipboard
API endpoint for fetching the lastData objecct
Would it be possible to add some URL that could be fetched from an external tool to check the details of the swarm using the JSON object?
Something like /status
which would return the lastData
object that is normally streamed with the WS.
Hi @Josh5
I have added the /data
API.
You can now use it with the docker image mohsenasm/swarm-dashboard:dev_data_api
.
Note that you need to enable this API by setting the ENABLE_DATA_API
environment variable to true
.
Hi @Josh5
I have added the
/data
API. You can now use it with the docker imagemohsenasm/swarm-dashboard:dev_data_api
. Note that you need to enable this API by setting theENABLE_DATA_API
environment variable totrue
.
Legend! Thanks