-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.json
1 lines (1 loc) · 14.9 KB
/
openapi.json
1
{"openapi":"3.0.2","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/login":{"post":{"tags":["users"],"summary":"Check Users","operationId":"check_users_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/info":{"get":{"tags":["users"],"summary":"Get Info","operationId":"get_info_info_get","parameters":[{"required":true,"schema":{"title":"Token","type":"string"},"name":"token","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logout":{"post":{"tags":["users"],"summary":"Logout","operationId":"logout_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/get_roles":{"get":{"tags":["users"],"summary":"Get Roles","operationId":"get_roles_get_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app_submit":{"post":{"tags":["app"],"summary":"Submit","operationId":"submit_app_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/App_item"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app_list":{"get":{"tags":["app"],"summary":"App List","operationId":"app_list_app_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/container_list":{"get":{"tags":["app"],"summary":"Container List","operationId":"container_list_container_list_get","parameters":[{"required":true,"schema":{"title":"App Name","type":"string"},"name":"app_name","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app_start":{"get":{"tags":["app"],"summary":"App Start","operationId":"app_start_app_start_get","parameters":[{"required":true,"schema":{"title":"App Name","type":"string"},"name":"app_name","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app_stop":{"get":{"tags":["app"],"summary":"App Stop","operationId":"app_stop_app_stop_get","parameters":[{"required":true,"schema":{"title":"App Name","type":"string"},"name":"app_name","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app_delete":{"get":{"tags":["app"],"summary":"App Delete","operationId":"app_delete_app_delete_get","parameters":[{"required":true,"schema":{"title":"App Name","type":"string"},"name":"app_name","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app_getinfo":{"get":{"tags":["app"],"summary":"App Getinfo","operationId":"app_getinfo_app_getinfo_get","parameters":[{"required":true,"schema":{"title":"App Name","type":"string"},"name":"app_name","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app_getperformance":{"get":{"tags":["app"],"summary":"App Getperformance","operationId":"app_getperformance_app_getperformance_get","parameters":[{"required":true,"schema":{"title":"App Name","type":"string"},"name":"app_name","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app_getname":{"get":{"tags":["app"],"summary":"App Getinfo","operationId":"app_getinfo_app_getname_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app_getlog":{"get":{"tags":["app"],"summary":"App Getlog","operationId":"app_getlog_app_getlog_get","parameters":[{"required":true,"schema":{"title":"App Name","type":"string"},"name":"app_name","in":"query"},{"required":true,"schema":{"title":"Container Id","type":"string"},"name":"container_id","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/download_log":{"post":{"tags":["app"],"summary":"Download Log","operationId":"download_log_download_log_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_download_log_download_log_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/file_list":{"get":{"tags":["file"],"summary":"File List","operationId":"file_list_file_list_get","parameters":[{"required":true,"schema":{"title":"Path","type":"string"},"name":"path","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/create_dir":{"post":{"tags":["file"],"summary":"Create Dir","operationId":"create_dir_create_dir_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_dir_create_dir_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/file_upload":{"post":{"tags":["file"],"summary":"File Upload","operationId":"file_upload_file_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_file_upload_file_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/delete_file":{"post":{"tags":["file"],"summary":"Delete","operationId":"delete_delete_file_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_delete_file_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/download_file":{"post":{"tags":["file"],"summary":"Download","operationId":"download_download_file_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_download_download_file_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduler/create":{"post":{"tags":["scheduler"],"summary":"Scheduler Create","operationId":"scheduler_create_scheduler_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduler/get_jobs":{"get":{"tags":["scheduler"],"summary":"Get Jobs","operationId":"get_jobs_scheduler_get_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/scheduler/delete_jobs":{"get":{"tags":["scheduler"],"summary":"Delete Jobs","operationId":"delete_jobs_scheduler_delete_jobs_get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image/pull":{"get":{"tags":["image"],"summary":"Image Pull","operationId":"image_pull_image_pull_get","parameters":[{"required":true,"schema":{"title":"Image Name","type":"string"},"name":"image_name","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image/getlist":{"get":{"tags":["image"],"summary":"Image Getlist","operationId":"image_getlist_image_getlist_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/image/getname":{"get":{"tags":["image"],"summary":"Image Getname","operationId":"image_getname_image_getname_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/image/delete":{"get":{"tags":["image"],"summary":"Image Delete","operationId":"image_delete_image_delete_get","parameters":[{"required":true,"schema":{"title":"Name","type":"string"},"name":"name","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image/build":{"get":{"tags":["image"],"summary":"Image Build","operationId":"image_build_image_build_get","parameters":[{"required":true,"schema":{"title":"Content","type":"string"},"name":"content","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/test":{"get":{"tags":["test"],"summary":"Test","operationId":"test_test_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/dashboard/getinfo":{"get":{"tags":["dashboard"],"summary":"Getinfo","operationId":"getinfo_dashboard_getinfo_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/items/{item_id}":{"get":{"summary":"Read Item","operationId":"read_item_items__item_id__get","parameters":[{"required":true,"schema":{"title":"Item Id"},"name":"item_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Create Item","operationId":"create_item__get","responses":{"404":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"App_item":{"title":"App_item","required":["code","app_name","image_name","run_command","timeout","app_type","run_type"],"type":"object","properties":{"code":{"title":"Code","type":"string"},"app_name":{"title":"App Name","type":"string"},"image_name":{"title":"Image Name","type":"string"},"run_command":{"title":"Run Command","type":"string"},"timeout":{"title":"Timeout","type":"integer"},"app_type":{"title":"App Type","type":"string"},"run_type":{"title":"Run Type","type":"string"},"network":{"title":"Network","type":"string"}}},"Body_create_dir_create_dir_post":{"title":"Body_create_dir_create_dir_post","required":["path","dir_name"],"type":"object","properties":{"path":{"title":"path","type":"string"},"dir_name":{"title":"dir_name","type":"string"}}},"Body_delete_delete_file_post":{"title":"Body_delete_delete_file_post","required":["paths"],"type":"object","properties":{"paths":{"title":"paths","type":"array","items":{}}}},"Body_download_download_file_post":{"title":"Body_download_download_file_post","required":["path"],"type":"object","properties":{"path":{"title":"paths","type":"string"}}},"Body_download_log_download_log_post":{"title":"Body_download_log_download_log_post","required":["app_name","container_id"],"type":"object","properties":{"app_name":{"title":"app_name","type":"string"},"container_id":{"title":"container_id","type":"string"}}},"Body_file_upload_file_upload_post":{"title":"Body_file_upload_file_upload_post","required":["path","file"],"type":"object","properties":{"path":{"title":"Path","type":"string"},"file":{"title":"File","type":"string","format":"binary"}}},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"Item":{"title":"Item","required":["username","password"],"type":"object","properties":{"username":{"title":"Username","type":"string"},"password":{"title":"Password","type":"string"}}},"Job":{"title":"Job","required":["app_name","type","param"],"type":"object","properties":{"app_name":{"title":"App Name","type":"string"},"type":{"title":"Type","type":"string"},"param":{"$ref":"#/components/schemas/Param"}}},"Param":{"title":"Param","type":"object","properties":{"hours":{"title":"Hours","type":"integer","default":0},"days":{"title":"Days","type":"integer","default":0},"minutes":{"title":"Minutes","type":"integer","default":0},"seconds":{"title":"Seconds","type":"integer","default":0},"crontab_expression":{"title":"Crontab Expression","type":"string"}}},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"type":"string"}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}}}}