fusion44 / blitz_api

A management backend for the RaspiBlitz project written in Python / FastAPI
MIT License
19 stars 18 forks source link

/setup/setup-sync-info: Use better data types for response #75

Open cstenglein opened 2 years ago

cstenglein commented 2 years ago

Currently, all the /setup/setup-sync-info call sends are strings.

As a developer, I would like to have the numbers / booleans in there sent instead of strings, so I don't have to convert the strings and can make sure that just numbers / booleans are sent.

cc @rootzoll

{
      "initialsync": "running",
      "btc_default": "bitcoin",
      "btc_default_ready": "1",
      "btc_default_sync_percentage": "100.00",
      "btc_default_peers": "24",
      "system_count_start_blockchain": "1",
      "ln_default": "lnd",
      "ln_default_ready": "1",
      "ln_default_locked": "0",
      "system_count_start_lightning": "1",
    }