WebAPI – Get work orders and technicians from workshops the authenticated user is responsible for

WebAPI – Get work orders and technicians from workshops the authenticated user is responsible for

This method returns the list of work orders and technicians that belong to the workshops the authenticated user is responsible for.
The methods to be used to get the list are:
  1. GET /api/mytenant/myorganization/maintenance/planners/getplanneritems?start=2019-03-01&end=2019-04-01
  2. GET /api/mytenant/myorganization/maintenance/planners/getplanneritems?start=2019-03-01&end=2019-04-01&maxRecords=100
  3. GET /api/mytenant/myorganization/maintenance/planners/getplanneritems?start=2019-03-01&end=2019-04-01&stateKey=003WORKORDER;004&workShopKey=MN;OT&technicianKey=0006;0007
The method gets the start and end date to filter the Work Orders by expected date. 
If the parameter maxRecords is not specified, it returns a maximum of 100 records. The parameters stateKey, workShopKey and technicianKey are optional and allow to define a list of values separated by “;”. The logic is the following:
  1. stateKey: returns all WOs with these states
  2. workShopKey: returns all WOs and employees from these workshops.
  3. technicianKey: returns all WOs assigned to these technicians, and in the employee list return only these.
The server returns a response HttpStatusCode.OK, with the work orders and the technicians, with an expected date between the start and end dates, the technicians assigned to the WOs and all technicians from the workshops of the authenticated user with the corresponding workshops and specialties.
If the parameter maxRecords is specified and the value is inferior to 100, it returns the number of records. If the parameter value is higher than 100, it returns an error message.
The WO state description is returned in the language selected by the user.