.talented.js 1.0 KB

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