Search
/scripts
GET /
Query Parameters
{ path?: string // Script path }
Notes
GET /detail
{ path?: string, // Script path file: string // File name }
POST /
Request Body (multipart/form-data)
{ file?: File, // Uploaded file filename: string, // File name path?: string, // File path content?: string, // File content originFilename?: string, // Original file name directory?: string // Directory name (for creating directories) }
PUT /
Request Body
{ filename: string, // File name path?: string, // File path content: string // File content }
DELETE /
{ filename: string, // File name path?: string, // File path type?: string // Type }
POST /download
{ filename: string // File name }
PUT /run
{ filename: string, // File name content?: string, // File content path?: string // File path }
PUT /stop
{ filename: string, // File name path?: string, // File path pid?: number // Process ID }
PUT /rename
{ filename: string, // Original file name path?: string, // File path newFilename: string // New file name }
{ code: 200, data: ... }