module.exports = { create: { requestBody: ['planid', 'termid', 'batchid', 'classid', 'studentid', 'title', 'content'], }, destroy: { params: ['!id'], service: 'delete', }, update: { params: ['!id'], requestBody: ['planid', 'termid', 'batchid', 'classid', 'studentid', 'title', 'content'], }, show: { parameters: { params: ['!id'], }, service: 'fetch', }, index: { parameters: { query: { termid: 'termid', batchid: 'batchid', classid: 'classid', studentid: 'studentid', content: 'content', }, }, service: 'query', options: { query: ['skip', 'limit'], sort: ['meta.createdAt'], desc: true, count: true, }, }, docx: { requestBody: ['planid', 'termid', 'batchid', 'classid', 'studentid'], service: 'exportDocx', }, };