TS - Improve filter query
Description
It has a necessity to improve the query method to filter data only when the specifications is correctly inserted at endpoint call.
Tasks
-
Creates query params validation to make filter only when serial_number, start_date and end_date fields were specified. -
Treats, in a explicity way, when the serial_number informed does not match with any transductor. -
Filter all data only when query params were validated.
Edited by Guilherme Augusto Nunes Silva