update swagger done
This commit is contained in:
@ -16,6 +16,9 @@ export class UserActivityController {
|
||||
static async list(req: Request, res: Response, next: NextFunction): Promise<Response> {
|
||||
/*
|
||||
#swagger.tags = ['User Activity']
|
||||
#swagger.security = [{
|
||||
"bearerAuth": []
|
||||
}]
|
||||
#swagger.parameters['filter'] = {
|
||||
in: 'query',
|
||||
type: 'string'
|
||||
@ -102,20 +105,21 @@ export class UserActivityController {
|
||||
static async create(req: Request, res: Response, next: NextFunction): Promise<Response> {
|
||||
/*
|
||||
#swagger.tags = ['User Activity']
|
||||
#swagger.parameters['body'] = {
|
||||
in: 'body',
|
||||
description: 'User Activity data',
|
||||
#swagger.security = [{
|
||||
"bearerAuth": []
|
||||
}]
|
||||
|
||||
#swagger.requestBody = {
|
||||
required: true,
|
||||
schema: {
|
||||
id_user: "4a6991b6-78a0-4b3b-bf5c-fa0af5f69be8",
|
||||
refresh_token: "1a1221b6-78a0-4b3b-bf5c-fa0af5f69be8",
|
||||
module: "dashboard",
|
||||
description: "Main Dashboard",
|
||||
action: "V",
|
||||
url: "https://bri-dev.shiblysolution.id/",
|
||||
data_body:"{\"from\":\"2024-11-01\",\"to\":\"2024-11-26\"}"
|
||||
content: {
|
||||
"application/json": {
|
||||
schema: {
|
||||
$ref: "#/components/schemas/user_activity"
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
*/
|
||||
|
||||
try {
|
||||
const schema = Joi.object().keys({
|
||||
|
||||
Reference in New Issue
Block a user