.uploadquestion.js 927 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "planid",
  5. "!termid",
  6. "!batchid",
  7. "!classid",
  8. "!studentid",
  9. "!questionnaireid",
  10. "answers",
  11. ],
  12. },
  13. destroy: {
  14. params: ["!id"],
  15. service: "delete",
  16. },
  17. update: {
  18. params: ["!id"],
  19. requestBody: [
  20. "planid",
  21. "termid",
  22. "batchid",
  23. "classid",
  24. "studentid",
  25. "questionnaireid",
  26. "answers",
  27. ],
  28. },
  29. show: {
  30. parameters: {
  31. params: ["!id"],
  32. },
  33. service: "fetch",
  34. },
  35. index: {
  36. parameters: {
  37. query: {
  38. planid: "planid",
  39. termid: "termid",
  40. batchid: "batchid",
  41. classid: "classid",
  42. studentid: "studentid",
  43. questionnaireid:"questionnaireid"
  44. },
  45. },
  46. service: "query",
  47. options: {
  48. query: ["skip", "limit"],
  49. sort: ["meta.createdAt"],
  50. desc: true,
  51. count: true,
  52. },
  53. },
  54. };