get https://case.coldstream.diabatix.com/cases/setup/
Retrieves all setup information and interface IDs for the specified case.
Recipes
🗂️
Retrieve all cases from a project
Open Recipe
Retrieves a case setup, this means its regions, subregions, materials...
Returns: a json object with the case setup
:param int case_Id:
id of the case you want to retrieve the setup of.
API call function:
def get_case_setup(self, case_Id) -> Dict:
url = self.caseserver_url + "/cases/setup/" + str(case_Id)
response = requests.get(url, headers=self.get_header)
if(response.ok):
print("case setup: \n", response.text, "\n")
return response.json()
else:
logger.error(f"retrieving case setup failed: {response.content}")
raise Exception