File tree Expand file tree Collapse file tree 1 file changed +81
-1
lines changed Expand file tree Collapse file tree 1 file changed +81
-1
lines changed Original file line number Diff line number Diff line change 375375 }
376376 }
377377 },
378+ "/api/v1/file_stat/{path}" : {
379+ "get" : {
380+ "summary" : " Get file stat" ,
381+ "tags" : [
382+ " files"
383+ ],
384+ "description" : " Reads the file metadata." ,
385+ "operationId" : " getFileStat" ,
386+ "security" : [
387+ {
388+ "bearerAuth" : []
389+ }
390+ ],
391+ "parameters" : [
392+ {
393+ "name" : " path" ,
394+ "in" : " path" ,
395+ "required" : true ,
396+ "description" : " File path" ,
397+ "schema" : {
398+ "type" : " string"
399+ },
400+ "example" : " workspace/src/main.go"
401+ }
402+ ],
403+ "responses" : {
404+ "200" : {
405+ "description" : " File metadata retrieved successfully" ,
406+ "content" : {
407+ "application/json" : {
408+ "schema" : {
409+ "$ref" : " #/components/schemas/FileInfo"
410+ }
411+ }
412+ }
413+ },
414+ "400" : {
415+ "description" : " Bad Request - Path is required or invalid path" ,
416+ "content" : {
417+ "application/json" : {
418+ "schema" : {
419+ "$ref" : " #/components/schemas/Error"
420+ }
421+ }
422+ }
423+ },
424+ "401" : {
425+ "description" : " Unauthorized" ,
426+ "content" : {
427+ "application/json" : {
428+ "schema" : {
429+ "$ref" : " #/components/schemas/Error"
430+ }
431+ }
432+ }
433+ },
434+ "404" : {
435+ "description" : " File not found" ,
436+ "content" : {
437+ "application/json" : {
438+ "schema" : {
439+ "$ref" : " #/components/schemas/Error"
440+ }
441+ }
442+ }
443+ },
444+ "default" : {
445+ "description" : " Unexpected Error" ,
446+ "content" : {
447+ "application/json" : {
448+ "schema" : {
449+ "$ref" : " #/components/schemas/Error"
450+ }
451+ }
452+ }
453+ }
454+ }
455+ }
456+ },
378457 "/api/v1/directories/{path}" : {
379458 "post" : {
380459 "summary" : " Create a directory" ,
18211900 "action" : {
18221901 "type" : " string" ,
18231902 "enum" : [
1824- " move"
1903+ " move" ,
1904+ " copy"
18251905 ],
18261906 "description" : " Type of action to perform on the file"
18271907 },
You can’t perform that action at this time.
0 commit comments