.carorder.js 874 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. module.exports = {
  2. create: {
  3. requestBody: ["!name", "!license","!mobile","model","carcolor","vin","insurance","drive","travel"],
  4. },
  5. destroy: {
  6. params: ["!id"],
  7. service: "delete",
  8. },
  9. update: {
  10. params: ["!id"],
  11. requestBody: ["!name", "!license","!mobile","model","carcolor","vin","insurance","drive","travel"],
  12. },
  13. show: {
  14. parameters: {
  15. params: ["!id"],
  16. },
  17. service: "fetch",
  18. },
  19. index: {
  20. parameters: {
  21. query: {
  22. name: "name",
  23. license: "license",
  24. mobile: "mobile",
  25. model: "model",
  26. carcolor: "carcolor",
  27. vin: "vin",
  28. insurance: "insurance",
  29. drive: "drive",
  30. travel: "travel",
  31. },
  32. },
  33. service: "query",
  34. options: {
  35. query: ["skip", "limit"],
  36. sort: ["meta.createdAt"],
  37. desc: true,
  38. count: true,
  39. },
  40. },
  41. };