diff --git a/v1/Application.cfc b/v1/Application.cfc index 534c55c..0df501b 100644 --- a/v1/Application.cfc +++ b/v1/Application.cfc @@ -51,7 +51,7 @@ //variables.framework.docs={}; variables.framework.docs.APIName="Deck API"; - variables.framework.docs.APIVersion="0.082"; + variables.framework.docs.APIVersion="0.083"; variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/resources/instance.cfc b/v1/resources/instance.cfc index 6a76806..66758fc 100644 --- a/v1/resources/instance.cfc +++ b/v1/resources/instance.cfc @@ -315,9 +315,9 @@ ,display_name= - + ,descr= diff --git a/v1/resources/instance_ls.cfc b/v1/resources/instance_ls.cfc index 01ad395..c1592f6 100644 --- a/v1/resources/instance_ls.cfc +++ b/v1/resources/instance_ls.cfc @@ -135,8 +135,8 @@ e.instance_uid::text as instance_uid e.display_name e.service_id - e.resource_realm_id - r.resource_realm + + e.specification_item_id e.is_auxiliary d.contract_id @@ -162,7 +162,7 @@ (select st.is_test from instance_state st where st.instance_uid=e.instance_uid order by version desc limit 1) as is_test coalesce((select st.instance_data->>'isDeleted' from instance_state st where st.instance_uid=e.instance_uid order by version desc limit 1),'false') as is_deleted (select st.instance_data->>'suspended' from instance_state st where st.instance_uid=e.instance_uid order by version desc limit 1) as suspended - + (select cast(st.instance_data->>'params' as json)->>'resourceRealm' from instance_state st where st.instance_uid=e.instance_uid order by version desc limit 1) as resourceRealm (select to_char(st.dt_state, 'YYYY-MM-DD"T"HH24:MI:SS.FF3TZHTZM') from instance_state st where st.instance_uid=e.instance_uid order by version desc limit 1) as dt_state (case @@ -333,14 +333,13 @@ insert into instance - (instance_uid, display_name, service_id, specification_item_id, resource_realm_id, descr, dt_created, creator_id, dt_updated, updater_id) + (instance_uid, display_name, service_id, specification_item_id, descr, dt_created, creator_id, dt_updated, updater_id) values ( , , , - , , , , diff --git a/v1/resources/instance_operation_ls.cfc b/v1/resources/instance_operation_ls.cfc index 2299fd3..e572d84 100644 --- a/v1/resources/instance_operation_ls.cfc +++ b/v1/resources/instance_operation_ls.cfc @@ -41,8 +41,8 @@ insert into instance_operation - (instance_uid, instance_operation_uid, operation, dt_created, creator_id, dt_updated, updater_id,resource_realm_id) - values + (instance_uid, instance_operation_uid, operation, dt_created, creator_id, dt_updated, updater_id, resource_realm_id) + values ( ,