1234567891011121314151617181920212223242526272829303132333435363738394041 |
- module.exports = {
- create: {
- requestBody: ["!classid", "!subid", "date", "!studentid", "score"],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: ["!classid", "!subid", "date", "!studentid", "score"],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- classid: "classid",
- subid: "subid",
- studentid: "studentid",
- score: "score",
- date: "date",
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- opera: {
- requestBody:["data"],
- service:'opera',
- },
- };
|