{"openapi":"3.1.0","info":{"title":"Atomipy Core Backend","version":"0.1.0"},"paths":{"/api/forcefield/openff-status":{"get":{"tags":["forcefield"],"summary":"Get Openff Status","description":"Proxy the status from the openff-worker.","operationId":"get_openff_status_api_forcefield_openff_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/forcefield/jobs/{task_id}/status":{"get":{"tags":["forcefield"],"summary":"Get Job Status","description":"Poll Celery task status.","operationId":"get_job_status_api_forcefield_jobs__task_id__status_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/forcefield/jobs/{job_id}/files":{"get":{"tags":["forcefield"],"summary":"Download Job Files","description":"Download job outputs as a ZIP archive.","operationId":"download_job_files_api_forcefield_jobs__job_id__files_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/forcefield/mix":{"post":{"tags":["forcefield"],"summary":"Mix Systems","description":"Deprecated: The standalone /mix endpoint has been superseded by the \ngraph execution engine in execution.py, which uses pure-Python N-way \ntopology merging without GMSO/ParmEd.","operationId":"mix_systems_api_forcefield_mix_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MixRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/build-stream":{"post":{"tags":["execution"],"summary":"Build Stream","operationId":"build_stream_api_build_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/download-result/{token}":{"get":{"tags":["execution"],"summary":"Download Result","operationId":"download_result_api_download_result__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/result-file/{token}/{filename}":{"get":{"tags":["execution"],"summary":"Result File","description":"Serve ONE file from a result bundle (so the viewer can stream a full trajectory\ndirectly instead of inlining it). Confined: the token must be a UUID and only the\nbasename of the requested file is matched against the archive entries.","operationId":"result_file_api_result_file__token___filename__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stop-build/{build_id}":{"post":{"tags":["execution"],"summary":"Stop Build","description":"Abort a running build by killing the sandboxed subprocess and its whole\nprocess group (so OpenMM/GROMACS children die too). The client should also\nabort its SSE stream reader.","operationId":"stop_build_api_stop_build__build_id__post","parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","title":"Build Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/upload":{"post":{"tags":["execution"],"summary":"Upload File","operationId":"upload_file_api_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_api_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"}}}}}}},"/api/organic/parametrize":{"post":{"tags":["execution"],"summary":"Organic Parametrize","description":"Preview & Validate endpoint for the Organic Molecule node.\nRoutes directly to the OpenFF worker without a full build run.\nReturns { job_id, n_atoms, box } on success.","operationId":"organic_parametrize_api_organic_parametrize_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/presets":{"get":{"tags":["execution"],"summary":"List Presets","operationId":"list_presets_api_presets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/inorganic/scan":{"post":{"tags":["execution"],"summary":"Inorganic Scan","description":"Scan an inorganic structure (preset or upload) for MINFF compatibility.\n\nLoads the structure, collects its elements, and flags any that have no MINFF\nframework type (the same set the dummy-mineral path uses). When unsupported\nelements are present, the UI steers the user to the 'Dummy FF'\nforcefield.","operationId":"inorganic_scan_api_inorganic_scan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/molecules":{"get":{"tags":["execution"],"summary":"List Molecules","description":"Bundled organic molecule library (Chemical JSON), grouped by category.\n\nReturns the manifest of ~428 GAFF/OpenFF-parameterizable small molecules\n(amino acids, nucleobases, sugars, alcohols, fatty acids, etc.) vendored\nfrom the Avogadro2 molecules library. Each entry's ``file`` is the\ncategory-relative path passed to ``ap.load_molecule``.","operationId":"list_molecules_api_molecules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/inorganic-library":{"get":{"tags":["execution"],"summary":"Inorganic Library","description":"Inorganic material library, grouped by category.\n\nThe first category, 'MINFF presets', is atomipy's curated, force-field-ready\nUC_conf set (loaded via UC_conf/<file>). The remaining categories are the\nbundled crystal library (~517 CIFs: oxides, halides, sulfides, elements,\nzeolites, …) — many need the Dummy FF. Each material carries a ``source``\n('preset' or 'crystal') telling the build how to load it.","operationId":"inorganic_library_api_inorganic_library_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/inorganic/cell":{"get":{"tags":["execution"],"summary":"Inorganic Cell","description":"Return the unit-cell metrics {a,b,c,alpha,beta,gamma} of a library structure.\n\nLets the frontend's Box node DISPLAY a crystal's (replicated) cell before any\nbuild. The crystal library's ``file`` is just a path (e.g.\n``oxides/SiO2-Quartz-alpha.cif``) — the cell lives inside the CIF, which the\nbrowser never parses, so the Box fell back to showing nothing (\"auto\"). This\nreads the cell cheaply (CIF header for crystals; import for other sources) so\nthe Box can show the real numbers. Lengths in Å, angles in degrees.","operationId":"inorganic_cell_api_inorganic_cell_get","parameters":[{"name":"file","in":"query","required":true,"schema":{"type":"string","title":"File"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"crystal","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/topology/{rest}":{"get":{"summary":"Topology Redirect","operationId":"topology_redirect_topology__rest__get","parameters":[{"name":"rest","in":"path","required":true,"schema":{"type":"string","title":"Rest"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/topology":{"get":{"summary":"Topology Redirect","operationId":"topology_redirect_topology_get","parameters":[{"name":"rest","in":"query","required":false,"schema":{"type":"string","default":"","title":"Rest"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{full_path}":{"get":{"summary":"Serve Spa","operationId":"serve_spa__full_path__get","parameters":[{"name":"full_path","in":"path","required":true,"schema":{"type":"string","title":"Full Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_upload_file_api_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_api_upload_post"},"BuildRequest":{"properties":{"script":{"type":"string","title":"Script"},"workflow":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Workflow"},"artifacts":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Artifacts"},"verbose_log":{"type":"boolean","title":"Verbose Log","default":false}},"type":"object","required":["script"],"title":"BuildRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MixRequest":{"properties":{"min_system":{"type":"string","title":"Min System"},"min_ff":{"type":"string","title":"Min Ff"},"smiles_list":{"items":{"type":"string"},"type":"array","title":"Smiles List"},"n_molecules":{"items":{"type":"integer"},"type":"array","title":"N Molecules"},"organic_ff":{"type":"string","title":"Organic Ff"},"targets":{"items":{"type":"string"},"type":"array","title":"Targets"},"run_simulation":{"type":"boolean","title":"Run Simulation","default":false},"simulation_params":{"anyOf":[{"$ref":"#/components/schemas/SimulationParams"},{"type":"null"}]},"generate_cross_terms":{"type":"boolean","title":"Generate Cross Terms","default":false}},"type":"object","required":["min_system","min_ff","smiles_list","n_molecules","organic_ff","targets"],"title":"MixRequest"},"SimulationParams":{"properties":{"timestep_fs":{"type":"number","title":"Timestep Fs","default":2.0},"temperature_K":{"type":"number","title":"Temperature K","default":300.0},"pressure_bar":{"type":"number","title":"Pressure Bar","default":1.0},"n_steps":{"type":"integer","title":"N Steps","default":500000},"barostat":{"type":"string","title":"Barostat","default":"isotropic"}},"type":"object","title":"SimulationParams"},"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"}}}}