12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- module.exports = {
- create: {
- requestBody: [
- "planyearid",
- "planid",
- "termid",
- "user_email",
- "auth_code",
- "am_start",
- "am_end",
- "pm_start",
- "pm_end",
- "bd_start",
- "bd_end",
- "ques_setting",
- "template_term",
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "planyearid",
- "planid",
- "termid",
- "user_email",
- "auth_code",
- "am_start",
- "am_end",
- "pm_start",
- "pm_end",
- "bd_start",
- "bd_end",
- "ques_setting",
- "template_term",
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- planyearid: "planyearid",
- planid: "planid",
- termid: "termid",
- user_email: "user_email",
- auth_code: "auth_code",
- am_start: "am_start",
- ques_setting: "ques_setting",
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- termList:{
- service:'termList'
- }
- };
|