Add via[Field] to @ login_via_credentials Check is_occupant is True or False @ login_via_credentials Add middleware @endpoint-controller to @ Event.Controller If Events2Occupants and Events2Employees are not found for user request, response 401 Unauthorized Also check user priority before Events2Occupants and Events2Employees /home/berkay/evyos-apis/wag_api_service/shared_functions Add default http errors status and message over Config Class Change login and token object with occupant and employee Add middleware to check user priority Event rendering function must check with Module -> Event For each event add step and required previous step Redis Cache TOKEN(encrypted) + UUID(encrypted) = Object (encrypted) Occupant { people_id, occupant_id } Employee { priority_id (Nullable | User), *duty_id }