123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- module.exports = {
- create: {
- requestBody: [
- 'planyearid',
- '!year',
- '!title',
- 'status',
- 'termnum',
- 'school',
- 'festivals'
- ]
- },
- destroy: {
- params: ['!id'],
- service: 'delete'
- },
- update: {
- params: ['!id'],
- requestBody: [
- 'planyearid',
- 'year',
- 'title',
- 'status',
- 'termnum',
- 'school',
- 'festivals'
- ]
- },
- show: {
- parameters: {
- params: ['!id']
- },
- service: 'fetch'
- },
- index: {
- parameters: {
- query: {
- planyearid: 'planyearid',
- year :'year',
- title :'title',
- status :'status',
- termnum :'termnum',
- festivals:'festivals'
- }
- },
- service: 'query',
- options: {
- query: ['skip', 'limit'],
- sort: ['meta.createdAt'],
- desc: true,
- count: true
- }
- },
- };
|