pichaya_om

HR Dashboard bundle

May 31st, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.96 KB | None | 0 0
  1. user_list = [{
  2.     user_id: 12345
  3.     user_email: '[email protected]'
  4.     employee_code: 'xxx',
  5.     employee_image: '',
  6.     full_name: ''
  7.     position: ''
  8.     department: ''
  9. }]
  10.  
  11.  
  12. course_list: [{
  13.     title: 'toeic_master'// 'toeic',
  14.     slug: 'toeic_master',
  15.     course_id_list: [1,2,3,4] // [11]
  16.     user_list: [{
  17.         user_id: 12345,
  18.         total_progress: 30, //for course bundle, use avg progress of child courses
  19.     },
  20.     {
  21.         user_id: 56789,
  22.         total_progress: 30,
  23.     }]
  24. }]
  25.  
  26.  
  27. API
  28.  
  29. apiAttendance:
  30. params: {
  31.     company: company_slug,
  32.     course_id_list: [1,2,3],
  33.     first_date: start_date,
  34.     last_date: end_date,
  35. }
  36.  
  37. apiProgress:
  38. params: {
  39.     company: company_slug,
  40.     course_id_list: [1,2,3],
  41.     first_date: start_date,
  42.     last_date: end_date,
  43. }
  44.  
  45.  
  46. apiStudentOnline
  47. params: {
  48.     company: 'opendurian',
  49.     course_id_list: [1,2,3,4],
  50.     user_id_list: ['12345','56789']
  51. }
  52.  
  53. apiStudentDetail
  54. url: '/api/analytics/student/' + user_id + '/'
  55. params: {
  56.     company: 'opendurian',
  57.     course_id_list: [1,2,3,4]
  58. }
Advertisement
Add Comment
Please, Sign In to add comment