You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we only have support for updating coordinates of a run, fetching runs based on ID, and creating runs. We want to have a endpoint in scylla that can update a Run note (run notes are for engineers to make notes while we collecting data, which are separated by Runs.
Acceptance Criteria
Service is tested (in run_service_test.rs) and works as expected (updates a runs note).
Route is tested using Postman, if you haven't used Postman before here is an explination by the Goat himself: https://www.youtube.com/watch?v=CgFTb_hKdEo&feature=youtu.be
If you have any questions about Postman testing (after watching the video), let me know.
Proposed Solution
Add a service in run_service.rs that takes the the db, run_id and note, and updates the note of the run with the given ID (see other services that use diesel::update as examples), that returns the updated Run
Add a controller in run_controllers.rs that takes in that run id and a note through Path (see other functions as an example), and calls your service function and then puts it's output (Run) into a into the PublicRun transformer and returns the result or an error (see other functions as examples)
Add a route to the Router in main.rs (follow the format of other routes (except this time take in a note and a Run ID))., that uses your controller.
Mocks
No response
The text was updated successfully, but these errors were encountered:
Description
Right now we only have support for updating coordinates of a run, fetching runs based on ID, and creating runs. We want to have a endpoint in scylla that can update a Run note (run notes are for engineers to make notes while we collecting data, which are separated by Runs.
Acceptance Criteria
Service is tested (in run_service_test.rs) and works as expected (updates a runs note).
Route is tested using Postman, if you haven't used Postman before here is an explination by the Goat himself: https://www.youtube.com/watch?v=CgFTb_hKdEo&feature=youtu.be
If you have any questions about Postman testing (after watching the video), let me know.
Proposed Solution
Mocks
No response
The text was updated successfully, but these errors were encountered: