.setting.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "planyearid",
  5. "planid",
  6. "termid",
  7. "user_email",
  8. "auth_code",
  9. "am_start",
  10. "am_end",
  11. "pm_start",
  12. "pm_end",
  13. "bd_start",
  14. "bd_end",
  15. "ques_setting",
  16. ],
  17. },
  18. destroy: {
  19. params: ["!id"],
  20. service: "delete",
  21. },
  22. update: {
  23. params: ["!id"],
  24. requestBody: [
  25. "planyearid",
  26. "planid",
  27. "termid",
  28. "user_email",
  29. "auth_code",
  30. "am_start",
  31. "am_end",
  32. "pm_start",
  33. "pm_end",
  34. "bd_start",
  35. "bd_end",
  36. "ques_setting",
  37. ],
  38. },
  39. show: {
  40. parameters: {
  41. params: ["!id"],
  42. },
  43. service: "fetch",
  44. },
  45. index: {
  46. parameters: {
  47. query: {
  48. planyearid: "planyearid",
  49. planid: "planid",
  50. termid: "termid",
  51. user_email: "user_email",
  52. auth_code: "auth_code",
  53. am_start: "am_start",
  54. ques_setting: "ques_setting",
  55. },
  56. },
  57. service: "query",
  58. options: {
  59. query: ["skip", "limit"],
  60. sort: ["meta.createdAt"],
  61. desc: true,
  62. count: true,
  63. },
  64. },
  65. };