From 6a4ef90c67eb4628d77edb2830a2d1e4ab925100 Mon Sep 17 00:00:00 2001 From: msyu Date: Mon, 18 Nov 2024 13:31:17 +0300 Subject: [PATCH] 023 vault --- v1/Application.cfc | 2 +- v1/etc/local-debug | 0 v1/resources/instance.cfc | 65 +++++++++++++++++ v1/resources/instance_operation_cfs_param.cfc | 27 ++++++- .../instance_operation_cfs_param_ls.cfc | 70 +++++++++++-------- v1/resources/instance_operation_run.cfc | 2 +- 6 files changed, 135 insertions(+), 31 deletions(-) create mode 100644 v1/etc/local-debug diff --git a/v1/Application.cfc b/v1/Application.cfc index 1465264..c9622c0 100644 --- a/v1/Application.cfc +++ b/v1/Application.cfc @@ -71,7 +71,7 @@ //variables.framework.docs={}; variables.framework.docs.APIName="Deck API"; - variables.framework.docs.APIVersion="0.021"; + variables.framework.docs.APIVersion="0.023"; variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/etc/local-debug b/v1/etc/local-debug new file mode 100644 index 0000000..e69de29 diff --git a/v1/resources/instance.cfc b/v1/resources/instance.cfc index b3e6383..4656861 100644 --- a/v1/resources/instance.cfc +++ b/v1/resources/instance.cfc @@ -143,6 +143,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/v1/resources/instance_operation_cfs_param.cfc b/v1/resources/instance_operation_cfs_param.cfc index 65504d7..f1df463 100644 --- a/v1/resources/instance_operation_cfs_param.cfc +++ b/v1/resources/instance_operation_cfs_param.cfc @@ -98,6 +98,14 @@ + + + + + + + + update instance_operation_cfs_param set @@ -106,8 +114,25 @@ ,param_value= where instance_operation_cfs_param_uid= + + + + + + + - + + + select svc_operation_cfs_param_id + from instance_operation_cfs_param + where instance_operation_cfs_param_uid= + + + + + + \ No newline at end of file diff --git a/v1/resources/instance_operation_cfs_param_ls.cfc b/v1/resources/instance_operation_cfs_param_ls.cfc index 316442b..7b5c4e6 100644 --- a/v1/resources/instance_operation_cfs_param_ls.cfc +++ b/v1/resources/instance_operation_cfs_param_ls.cfc @@ -95,7 +95,8 @@ - + + - + @@ -148,6 +149,7 @@ + @@ -167,27 +169,30 @@ - + - select e.service_id + select e.service_id, io.operation from instance_operation io join instance e on (io.instance_uid=e.instance_uid) where io.instance_operation_uid= - select so.svc_id + select so.svc_id, so.operation from svc_operation_cfs_param sop join svc_operation so on (sop.svc_operation_id=so.svc_operation_id) where sop.svc_operation_cfs_param_id= - + + + + - + insert into instance_operation_cfs_param ( @@ -200,10 +205,12 @@ , , ); - - - - + + + + @@ -211,13 +218,13 @@ .withHeaders({location: "./#local.instanceOperationCfsParamUid#"}) .withStatus(201, "Created") /> - + - + select sop.svc_operation_cfs_param ,sop.value_list @@ -232,24 +239,31 @@ - + + - + + - + + - + + - + + - + + + @@ -263,7 +277,8 @@ - + + @@ -286,14 +301,13 @@ - - - + + + - - - + + diff --git a/v1/resources/instance_operation_run.cfc b/v1/resources/instance_operation_run.cfc index 7528cb3..1ed2db3 100644 --- a/v1/resources/instance_operation_run.cfc +++ b/v1/resources/instance_operation_run.cfc @@ -6,7 +6,7 @@ - +