christoff-linde/pih-rs

Add query parameter parsing

Closed this issue · 0 comments

Description

Currently, the update_sensor endpoint accepts a POST request, with the relevant sensor data sent as part of the response body as JSON.

(For now) the esp-32 firmware only supports sending HTTP/GET requests, with the data in query params. The backend API should be updated to support this functionality.

Task List

  • Refactor current update_sensor endpoint to be GET
  • Add Query parameter parsing support