Skip to content

BusinessEmployee

nattapon.r edited this page Feb 8, 2017 · 17 revisions

BusinessEmployee-API provide a handler of employee in a business.

Model

https://github.com/mzget/rfl-sme-app/wiki/employee_collection

Case :

  • A user who have a card of business that can request to be employee or claimer. Other case can't. CLOSE
  • When user request to be an employee or claimer systems will generate notification for all claimers. CLOSE
  • When user request to be an employee system will generate links of user to all claimers. CLOSE
  • Claimers or Sub-Claimer can accept team link as verify employee or reject theirs employee status. WIP

requestEmployed: POST => (businessId: string, userId, string) : WriteOps

http://git.animation-genius.com:3002/api/business/businessEmployee/requestEmployed

getVerifiedEmployee: GET =>(businessId: string) : Employee[]

http://git.animation-genius.com:3002/api/business/businessEmployee/getVerifiedEmployee?businessId=57979e966362fe864d2c8489

approveEmployee: POST =>(employeeId: string) : WriteOps

http://git.animation-genius.com:3002/api/business/businessEmployee/approveEmployee

getAllEmployee: GET => (businessId: string) : Employee[]

http://git.animation-genius.com:3002/api/business/businessEmployee/getAllEmployee?businessId=57979e966362fe864d2c8489

/allEmployeeInfo : GET => (businessId: string) : { user, employee_status }

http://git.animation-genius.com:3002/api/business/businessEmployee/allEmployeeInfo?businessId=57979e966362fe864d2c8489

/businessEmployeeStatus: GET => (businessId : string, userId: string) : Employee[]

http://git.animation-genius.com:3002/api/business/businessEmployee/businessEmployeeStatus?userId=57a187bdbe03185a0625d4d1&businessId=57979e966362fe864d2c8489

Clone this wiki locally