docs: word and order

This commit is contained in:
Methapon2001 2023-11-27 14:06:51 +07:00
parent 9b2bff6ba5
commit d8cf568206
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
10 changed files with 322 additions and 284 deletions

View file

@ -32,7 +32,7 @@ if (!DEFAULT_INDEX) throw Error("Default ElasticSearch index must be specified."
@Route("/cabinet/{cabinetName}/drawer")
export class DrawerController extends Controller {
@Get("/")
@Tags("Drawer")
@Tags("ลิ้นชัก")
@Security("bearerAuth")
@Response(
HttpStatusCode.INTERNAL_SERVER_ERROR,
@ -49,7 +49,7 @@ export class DrawerController extends Controller {
}
@Post("/")
@Tags("Drawer")
@Tags("ลิ้นชัก")
@Security("bearerAuth", ["admin"])
@Response(HttpStatusCode.NOT_FOUND, "ไม่พบลิ้นชัก")
@Response(HttpStatusCode.INTERNAL_SERVER_ERROR, "เกิดข้อผิดพลาดกับระบบจัดการไฟล์")
@ -85,7 +85,7 @@ export class DrawerController extends Controller {
}
@Put("/{drawerName}")
@Tags("Drawer")
@Tags("ลิ้นชัก")
@Security("bearerAuth", ["admin"])
@Response(HttpStatusCode.INTERNAL_SERVER_ERROR, "เกิดข้อผิดพลาดไม่สามารถย้ายไฟล์ได้")
@SuccessResponse(HttpStatusCode.NO_CONTENT, "สำเร็จ")
@ -141,7 +141,7 @@ export class DrawerController extends Controller {
}
@Delete("/{drawerName}")
@Tags("Drawer")
@Tags("ลิ้นชัก")
@Security("bearerAuth", ["admin"])
@SuccessResponse(HttpStatusCode.NO_CONTENT, "สำเร็จ")
public async deleteDrawer(@Path() cabinetName: string, @Path() drawerName: string) {