token fixing, add nationality crud

This commit is contained in:
Narul Hidayah
2026-01-02 17:16:34 +07:00
parent 76dfb10700
commit 42ec8be77e
10 changed files with 444 additions and 86 deletions

View File

@ -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);