swarm-dashboard icon indicating copy to clipboard operation
swarm-dashboard copied to clipboard

API endpoint for fetching the lastData objecct

Open Josh5 opened this issue 10 months ago • 2 comments

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.

Josh5 avatar Apr 16 '24 03:04 Josh5

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.

mohsenasm avatar Apr 16 '24 07:04 mohsenasm

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.

Legend! Thanks

Josh5 avatar Apr 16 '24 07:04 Josh5