You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't POST a property that belongs to a component of a composite through the API
This is currently accomplished in the SQL scripts (e.g.: link) by inserting directly into vw_material_property. We can't do the same with api/materialproperty since it expects elements of material, not material_property.
vw_composite_material_property has no upsert, so one would need to be written to make api/compositematerialproperty writeable.
insert into vw_material_property (material_uuid, property_def_uuid, -- note that this actually inserts a row in vw_material_composite_property
property_value, property_actor_uuid, property_status_uuid ) values (
(select material_composite_uuid from vw_material_composite where composite_description ='Am-243 Stock'and component_description ='Hydrochloric acid'),
(select property_def_uuid from vw_property_def where short_description ='molar'),
'.1',
(select actor_uuid from vw_actor where description ='Mike Tynes'),
(select status_uuid from vw_status where description ='dev_test'));
The text was updated successfully, but these errors were encountered:
So here's the problem:
I can't POST a property that belongs to a component of a composite through the API
This is currently accomplished in the SQL scripts (e.g.:
link) by inserting directly into
vw_material_property
. We can't do the same withapi/materialproperty
since it expects elements ofmaterial
, notmaterial_property
.This relates to #108
vw_composite_material_property
has no upsert, so one would need to be written to makeapi/compositematerialproperty
writeable.The text was updated successfully, but these errors were encountered: