docs: word and order
This commit is contained in:
parent
9b2bff6ba5
commit
d8cf568206
10 changed files with 322 additions and 284 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue