Closed Suocesky closed 1 year ago
The goal of this task is to support editing selected fields from the current information table (see EthernetServer_TC.cpp:132). The general format will be similar to a POST but is a PUT with a key from the list in JSONBuilder.cpp:37-49 and a new value for that field. On success the server should return a status code of 200 and the body content from the current()
function (above).
The steps we will do for this include the following:
./extras/scripts/testAndBuild.sh
current()
instead of display()
), confirm that they fail, then make them passFixed by #389.
Add functions to accept and handle PUT requests in addition to POST requests so that values can be edited from the web app.