token fixing, add nationality crud
This commit is contained in:
@ -17,6 +17,9 @@ export class MunisipoController {
|
||||
static async list(req: Request, res: Response, next: NextFunction): Promise<Response> {
|
||||
/*
|
||||
#swagger.tags = ['Munisipo']
|
||||
#swagger.security = [{
|
||||
"bearerAuth": []
|
||||
}]
|
||||
#swagger.parameters['filter'] = {
|
||||
description: 'Filter with 2 format : <ul><li>Simple format use text plaint will filter eq:code or like %name%</li><li>Advance format using field existing {status:\'Y\', any:\'SAME AS PLAINT LOGIC\', etc...}</li></ul>',
|
||||
in: 'query',
|
||||
@ -49,11 +52,6 @@ export class MunisipoController {
|
||||
'@enum': ['ASC', 'DESC']
|
||||
}
|
||||
}
|
||||
#swagger.parameters['token'] = {
|
||||
in: 'query',
|
||||
required: true,
|
||||
type: 'string'
|
||||
}
|
||||
*/
|
||||
|
||||
try {
|
||||
@ -64,7 +62,6 @@ export class MunisipoController {
|
||||
with_deleted: Joi.bool().required().label('With Deleted'),
|
||||
order_field: Joi.string().required().label('Order Field'),
|
||||
order_direction: Joi.string().allow('asc', 'desc').required().label('Order Direction'),
|
||||
token: Joi.string().required().label('Token'),
|
||||
});
|
||||
|
||||
const param: Paging = await schema.validateAsync(req.query);
|
||||
@ -109,6 +106,9 @@ export class MunisipoController {
|
||||
static async export(req: Request, res: Response, next: NextFunction): Promise<void | Response> {
|
||||
/*
|
||||
#swagger.tags = ['Munisipo']
|
||||
#swagger.security = [{
|
||||
"bearerAuth": []
|
||||
}]
|
||||
#swagger.parameters['filter'] = {
|
||||
description: 'Filter with 2 format : <ul><li>Simple format use text plaint will filter eq:code or like %name%</li><li>Advance format using field existing {status:\'Y\', any:\'SAME AS PLAINT LOGIC\', etc...}</li></ul>',
|
||||
in: 'query',
|
||||
@ -130,11 +130,6 @@ export class MunisipoController {
|
||||
'@enum': ['ASC', 'DESC']
|
||||
}
|
||||
}
|
||||
#swagger.parameters['token'] = {
|
||||
in: 'query',
|
||||
required: true,
|
||||
type: 'string'
|
||||
}
|
||||
*/
|
||||
|
||||
try {
|
||||
@ -142,7 +137,6 @@ export class MunisipoController {
|
||||
filter: Joi.string().allow('').optional().label('Filter'),
|
||||
order_field: Joi.string().required().label('Order Field'),
|
||||
order_direction: Joi.string().allow('asc', 'desc').required().label('Order Direction'),
|
||||
token: Joi.string().required().label('Token'),
|
||||
});
|
||||
|
||||
const param: Paging = await schema.validateAsync(req.query);
|
||||
|
||||
Reference in New Issue
Block a user