Get breakage information for a particular date
Method takes one optional argument, the date for which to return breakage. If no date is specified, the current system date is used.
Example:
http://localhost:4567/api/get_breakage?date=20190710
Input - 1 parameter, date for which breakage numbers are being requested
returns the breakage codes used that day, and the number of LENSES broken for each code. (TOTAL is the total of all lenses broken)
[ { "code": "TOTAL", "num": " 6" }, { "code": "AXIS", "num": " 2" }, { "code": "POWER", "num": " 3" }, { "code": "SCRATCH", "num": " 1" } ]