{"openapi":"3.1.0","info":{"title":"Kerbal Depot","description":"Kerbal Depot website and backwards-compatible KSP API.","version":"3.12.0"},"paths":{"/api/{name}.php":{"delete":{"summary":"Legacy Api","operationId":"legacy_api_api__name__php_delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Legacy Api","operationId":"legacy_api_api__name__php_delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Legacy Api","operationId":"legacy_api_api__name__php_delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/index.php":{"get":{"summary":"Index","operationId":"index_index_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/craft_details.php":{"get":{"summary":"Craft Page","operationId":"craft_page_craft_details_php_get","parameters":[{"name":"slug","in":"query","required":false,"schema":{"type":"string","default":"","title":"Slug"}},{"name":"id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/craft.php":{"get":{"summary":"Craft Page","operationId":"craft_page_craft_php_get","parameters":[{"name":"slug","in":"query","required":false,"schema":{"type":"string","default":"","title":"Slug"}},{"name":"id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/download.php":{"get":{"summary":"Download","operationId":"download_download_php_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/modpacks.php":{"get":{"summary":"Modpacks","operationId":"modpacks_modpacks_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/modpack.php":{"get":{"summary":"Modpack","operationId":"modpack_modpack_php_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Id"}},{"name":"slug","in":"query","required":false,"schema":{"type":"string","default":"","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Description Edit","operationId":"description_edit_modpack_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/modpack_download.php":{"get":{"summary":"Modpack Download","operationId":"modpack_download_modpack_download_php_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/kos_scripts.php":{"get":{"summary":"Scripts","operationId":"scripts_kos_scripts_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/kos_script.php":{"get":{"summary":"Script Details","operationId":"script_details_kos_script_php_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Id"}},{"name":"slug","in":"query","required":false,"schema":{"type":"string","default":"","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Description Edit","operationId":"description_edit_kos_script_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/kos_download.php":{"get":{"summary":"Script Download","operationId":"script_download_kos_download_php_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/hangars.php":{"get":{"summary":"Hangars","operationId":"hangars_hangars_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/hangar.php":{"get":{"summary":"Hangar","operationId":"hangar_hangar_php_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Id"}},{"name":"slug","in":"query","required":false,"schema":{"type":"string","default":"","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Description Edit","operationId":"description_edit_hangar_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/mods.php":{"get":{"summary":"Parts","operationId":"parts_mods_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/parts.php":{"get":{"summary":"Parts","operationId":"parts_parts_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/partmapper_uploads.php":{"get":{"summary":"Uploads","operationId":"uploads_partmapper_uploads_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/image.php":{"get":{"summary":"Image","operationId":"image_image_php_get","parameters":[{"name":"f","in":"query","required":true,"schema":{"type":"string","title":"F"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/register.php":{"get":{"summary":"Auth Page","operationId":"auth_page_register_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Register","operationId":"register_register_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/login.php":{"get":{"summary":"Auth Page","operationId":"auth_page_login_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Signin","operationId":"signin_login_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/logout.php":{"post":{"summary":"Logout","operationId":"logout_logout_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/verify_email.php":{"get":{"summary":"Verify Email","operationId":"verify_email_verify_email_php_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forgot_password.php":{"get":{"summary":"Forgot Password Form","operationId":"forgot_password_form_forgot_password_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Forgot Password","operationId":"forgot_password_forgot_password_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/reset_password.php":{"get":{"summary":"Reset Password Form","operationId":"reset_password_form_reset_password_php_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Reset Password","operationId":"reset_password_reset_password_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/my.php":{"get":{"summary":"My Page","operationId":"my_page_my_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/profile.php":{"get":{"summary":"Profile","operationId":"profile_profile_php_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Id"}},{"name":"user","in":"query","required":false,"schema":{"type":"string","default":"","title":"User"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api_keys.php":{"get":{"summary":"Key Page","operationId":"key_page_api_keys_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Key Action","operationId":"key_action_api_keys_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/kos_upload.php":{"get":{"summary":"Upload Form","operationId":"upload_form_kos_upload_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Upload Submit","operationId":"upload_submit_kos_upload_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/modpack_upload.php":{"get":{"summary":"Upload Form","operationId":"upload_form_modpack_upload_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Upload Submit","operationId":"upload_submit_modpack_upload_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/upload.php":{"get":{"summary":"Upload Form","operationId":"upload_form_upload_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Upload Submit","operationId":"upload_submit_upload_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/hangar_create.php":{"get":{"summary":"Create Hangar Form","operationId":"create_hangar_form_hangar_create_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Create Hangar","operationId":"create_hangar_hangar_create_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/hangar_add.php":{"post":{"summary":"Add To Hangar","operationId":"add_to_hangar_hangar_add_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/edit.php":{"get":{"summary":"Edit Form","operationId":"edit_form_edit_php_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Edit Submit","operationId":"edit_submit_edit_php_post","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/delete.php":{"post":{"summary":"Delete","operationId":"delete_delete_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/comments.php":{"post":{"summary":"Add Comment","operationId":"add_comment_comments_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/vote.php":{"post":{"summary":"Vote","operationId":"vote_vote_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/follow_user.php":{"post":{"summary":"Follow","operationId":"follow_follow_user_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/settings.php":{"get":{"summary":"Settings","operationId":"settings_settings_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Settings Save","operationId":"settings_save_settings_php_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin.php":{"get":{"summary":"Admin","operationId":"admin_admin_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/stats.php":{"get":{"summary":"Stats","operationId":"stats_stats_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api_docs.php":{"get":{"summary":"Api Docs","operationId":"api_docs_api_docs_php_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/{slug}.php":{"get":{"summary":"Informational Pages","operationId":"informational_pages__slug__php_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}