1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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",
- ],
- },
- 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",
- ],
- },
- 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,
- },
- },
- };
|