diff --git a/modules/route/back/methods/route/filter.js b/modules/route/back/methods/route/filter.js index c96f856f0..fdec84d4d 100644 --- a/modules/route/back/methods/route/filter.js +++ b/modules/route/back/methods/route/filter.js @@ -10,58 +10,67 @@ module.exports = Self => { accepts: [ { arg: 'filter', - type: 'Object', + type: 'object', description: 'Filter defining where, order, offset, and limit - must be a JSON-encoded string', http: {source: 'query'} - }, { + }, + { arg: 'search', - type: 'String', + type: 'string', description: 'Searchs the route by id', http: {source: 'query'} - }, { + }, + { arg: 'workerFk', - type: 'Integer', + type: 'integer', description: 'The worker id', http: {source: 'query'} - }, { + }, + { arg: 'agencyModeFk', - type: 'Integer', + type: 'integer', description: 'The agencyMode id', http: {source: 'query'} - }, { + }, + { arg: 'to', - type: 'Date', + type: 'date', description: 'The to date filter', http: {source: 'query'} - }, { + }, + { arg: 'from', - type: 'Date', + type: 'date', description: 'The to date filter', http: {source: 'query'} - }, { + }, + { arg: 'vehicleFk', - type: 'Integer', + type: 'integer', description: 'The vehicle id', http: {source: 'query'} - }, { + }, + { arg: 'm3', - type: 'Number', + type: 'number', description: 'The m3 filter', http: {source: 'query'} - }, { + }, + { arg: 'warehouseFk', - type: 'Number', + type: 'number', description: 'The warehouse filter', http: {source: 'query'} - }, { + }, + { arg: 'description', - type: 'String', + type: 'string', description: 'The description filter', http: {source: 'query'} } ], returns: { - type: ['Object'], + type: ['object'], root: true }, http: {