token fixing, add nationality crud
This commit is contained in:
@ -24,6 +24,9 @@ export class ApplicationController {
|
||||
): Promise<Response> {
|
||||
/*
|
||||
#swagger.tags = ['Application']
|
||||
#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',
|
||||
@ -56,11 +59,6 @@ export class ApplicationController {
|
||||
'@enum': ['ASC', 'DESC']
|
||||
}
|
||||
}
|
||||
#swagger.parameters['token'] = {
|
||||
in: 'query',
|
||||
required: true,
|
||||
type: 'string'
|
||||
}
|
||||
*/
|
||||
|
||||
try {
|
||||
@ -74,7 +72,6 @@ export class ApplicationController {
|
||||
.allow("asc", "desc")
|
||||
.required()
|
||||
.label("Order Direction"),
|
||||
token: Joi.string().required().label("Token"),
|
||||
});
|
||||
|
||||
const param: Paging = await schema.validateAsync(req.query);
|
||||
@ -137,6 +134,9 @@ export class ApplicationController {
|
||||
): Promise<void | Response> {
|
||||
/*
|
||||
#swagger.tags = ['Application']
|
||||
#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',
|
||||
@ -158,11 +158,6 @@ export class ApplicationController {
|
||||
'@enum': ['ASC', 'DESC']
|
||||
}
|
||||
}
|
||||
#swagger.parameters['token'] = {
|
||||
in: 'query',
|
||||
required: true,
|
||||
type: 'string'
|
||||
}
|
||||
*/
|
||||
|
||||
try {
|
||||
@ -173,7 +168,6 @@ export class ApplicationController {
|
||||
.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