28 """Get the value for a specific model reference."""
29 property_idshort_path = construct_id_short_path_from_reference(model_reference)
32 protocol_binding: HttpProtocolBinding = self.
_parsed_properties[property_idshort_path].protocol_binding
33 http_method = protocol_binding.method_name
34 http_headers = protocol_binding.headers
38 response = requests.get(self.
base + url_resource, headers=http_headers)
40 raise ValueError(f
"http method {method} not implemented.")
41 response.raise_for_status()
42 value_in_payload = response.text
44 if value_in_payload
is None:
50 value_in_payload = json.dumps(json.loads(value_in_payload)[k])
52 return str(value_in_payload)