chore: update route and swagger

This commit is contained in:
Methapon2001 2023-11-21 11:47:10 +07:00
parent 3ff307720b
commit 3247af3cab
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
2 changed files with 69 additions and 2 deletions

View file

@ -56,6 +56,15 @@ const models: TsoaRoute.Models = {
"additionalProperties": false,
},
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
"Search": {
"dataType": "refObject",
"properties": {
"AND": {"dataType":"array","array":{"dataType":"nestedObjectLiteral","nestedProperties":{"value":{"dataType":"string","required":true},"field":{"dataType":"string","required":true}}}},
"OR": {"dataType":"array","array":{"dataType":"nestedObjectLiteral","nestedProperties":{"value":{"dataType":"string","required":true},"field":{"dataType":"string","required":true}}}},
},
"additionalProperties": false,
},
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
};
const validationService = new ValidationService(models);
@ -523,6 +532,7 @@ export function RegisterRoutes(app: Router) {
function SearchController_searchFile(request: any, response: any, next: any) {
const args = {
search: {"in":"body","name":"search","required":true,"ref":"Search"},
};
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa

View file

@ -124,6 +124,48 @@
],
"type": "object",
"additionalProperties": false
},
"Search": {
"properties": {
"AND": {
"items": {
"properties": {
"value": {
"type": "string"
},
"field": {
"type": "string"
}
},
"required": [
"value",
"field"
],
"type": "object"
},
"type": "array"
},
"OR": {
"items": {
"properties": {
"value": {
"type": "string"
},
"field": {
"type": "string"
}
},
"required": [
"value",
"field"
],
"type": "object"
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
}
},
"securitySchemes": {
@ -928,15 +970,30 @@
"content": {
"application/json": {
"schema": {
"items": {},
"items": {
"$ref": "#/components/schemas/EhrFile"
},
"type": "array"
}
}
}
}
},
"tags": [
"Search"
],
"security": [],
"parameters": []
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Search"
}
}
}
}
}
},
"/cabinet/{cabinetName}/drawer/{drawerName}/folder/{folderName}/subfolder": {