123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- module.exports = {
- create: {
- requestBody: [
- "planid",
- "!termid",
- "!batchid",
- "!classid",
- "!studentid",
- "!questionnaireid",
- "answers",
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "planid",
- "termid",
- "batchid",
- "classid",
- "studentid",
- "questionnaireid",
- "answers",
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- planid: "planid",
- termid: "termid",
- batchid: "batchid",
- classid: "classid",
- studentid: "studentid",
- questionnaireid:"questionnaireid"
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- };
|