docs: swagger folder and subfolder

This commit is contained in:
Methapon2001 2023-11-27 16:55:52 +07:00
parent 55ee26d3d7
commit 17b70e8d5e
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
3 changed files with 125 additions and 16 deletions

View file

@ -12,6 +12,7 @@ import {
Tags,
Request,
Response,
Example,
} from "tsoa";
import minioClient from "../minio";
@ -43,6 +44,20 @@ export class FolderController extends Controller {
"เกิดข้อผิดพลาด ไม่สามารถแสดงรายการแฟ้มได้ กรุณาลองใหม่ในภายหลัง",
)
@SuccessResponse(HttpStatusCode.OK, "สำเร็จ")
@Example([
{
path: "ตู้เอกสาร 1/ลิ้นชัก 1/แฟ้ม 1",
name: "แฟ้ม 1",
createdAt: "2021-07-20T12:33:13.018Z",
createdBy: "admin",
},
{
path: "ตู้เอกสาร 1/ลิ้นชัก 1/แฟ้ม 2",
name: "แฟ้ม 2",
createdAt: "2022-01-23T16:05:02.114Z",
createdBy: "admin",
},
])
public async listFolder(
@Path() cabinetName: string,
@Path() drawerName: string,