.experience.js 1.1 KB

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