module.exports = { create: { requestBody: [ 'code', '!name' ] }, destroy: { params: ['!id'], service: 'delete' }, update: { params: ['!id'], requestBody: [ 'code', '!name' ] }, show: { parameters: { params: ['!id'] }, service: 'fetch' }, index: { parameters: { query: { code: 'code', name: 'name' } }, service: 'query', options: { query: ['skip', 'limit'], sort: ['meta.createdAt'], desc: true, count: true } }, };