feat: Provide alternate endpoints for submission of jobs without JSON ontology file #11

Merged
CoreRasurae merged 1 commits from feat/alternate_eps-#10 into master 2026-01-28 20:55:56 +00:00
@@ -635,7 +635,12 @@ class CleverSwarmClient(object):
files.append(("ontology", open(ontology_file, "rb")))
response = requests.post(
self._base_url + "unstructured/with_ontology",
self._base_url
+ (
"unstructured/with_ontology"
if ontology_file
else "unstructured/with_ontology_simple"
),
headers=headers,
params=params,
files=files,
@@ -715,7 +720,12 @@ class CleverSwarmClient(object):
files.append(("ontology", open(ontology_file, "rb")))
response = requests.post(
self._base_url + "unstructured/with_wildcards",
self._base_url
+ (
"unstructured/with_wildcards"
if ontology_file
else "unstructured/with_wildcards_simple"
),
headers=headers,
params=params,
files=files,