.uploadquestion.js 876 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. }
  44. },
  45. service: 'query',
  46. options: {
  47. query: ['skip', 'limit'],
  48. sort: ['meta.createdAt'],
  49. desc: true,
  50. count: true
  51. }
  52. },
  53. };