123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- module.exports = {
- create: {
- requestBody: [
- '!title',
- '!type',
- 'allday',
- 'lessons'
- ]
- },
- destroy: {
- params: ['!id'],
- service: 'delete'
- },
- update: {
- params: ['!id'],
- requestBody: [
- 'title',
- 'type',
- 'allday',
- 'lessons'
- ]
- },
- show: {
- parameters: {
- params: ['!id']
- },
- service: 'fetch'
- },
- index: {
- parameters: {
- query: {
- title :'title',
- type :'type',
- lessons :'lessons'
- }
- },
- service: 'query',
- options: {
- query: ['skip', 'limit'],
- sort: ['meta.createdAt'],
- desc: true,
- count: true
- }
- },
- };
|