From b22b93139a65cac418b26ac82e803b8245a64676 Mon Sep 17 00:00:00 2001 From: msyu Date: Sat, 7 Dec 2024 18:20:18 +0300 Subject: [PATCH] 037 man, cfs_param note --- v1/Application.cfc | 2 +- v1/resources/instance_operation.cfc | 1 + v1/resources/instance_operation_cfs_param.cfc | 3 + .../instance_operation_cfs_param_ls.cfc | 48 +----------- v1/resources/svc.cfc | 2 + v1/resources/svc_ls.cfc | 73 ++----------------- v1/resources/svc_operation.cfc | 2 + 7 files changed, 18 insertions(+), 113 deletions(-) diff --git a/v1/Application.cfc b/v1/Application.cfc index 79a9a12..18b8837 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.036"; + variables.framework.docs.APIVersion="0.037"; variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/resources/instance_operation.cfc b/v1/resources/instance_operation.cfc index da61193..2d450a6 100644 --- a/v1/resources/instance_operation.cfc +++ b/v1/resources/instance_operation.cfc @@ -112,6 +112,7 @@ sop.regex sop.unique_scope sop.descr + iop.note from svc_operation_cfs_param sop left outer join instance_operation_cfs_param iop diff --git a/v1/resources/instance_operation_cfs_param.cfc b/v1/resources/instance_operation_cfs_param.cfc index b3c7f09..db83626 100644 --- a/v1/resources/instance_operation_cfs_param.cfc +++ b/v1/resources/instance_operation_cfs_param.cfc @@ -27,6 +27,7 @@ iop.instance_operation_uid::text as instance_operation_uid iop.svc_operation_cfs_param_id iop.param_value + iop.descr to_char(iop.dt_created, 'YYYY-MM-DD"T"HH24:MI:SS.FF3TZHTZM') as dt_created iop.creator_id sop.svc_operation_cfs_param @@ -98,6 +99,7 @@ + @@ -112,6 +114,7 @@ dt_created= ,creator_id= ,param_value= + ,note= where instance_operation_cfs_param_uid= diff --git a/v1/resources/instance_operation_cfs_param_ls.cfc b/v1/resources/instance_operation_cfs_param_ls.cfc index 2292ad3..09c013b 100644 --- a/v1/resources/instance_operation_cfs_param_ls.cfc +++ b/v1/resources/instance_operation_cfs_param_ls.cfc @@ -57,6 +57,7 @@ iop.instance_operation_uid::text as instance_operation_uid iop.svc_operation_cfs_param_id iop.param_value + iop.note to_char(iop.dt_created, 'YYYY-MM-DD"T"HH24:MI:SS.FF3TZHTZM') as dt_created iop.creator_id sop.svc_operation_cfs_param @@ -100,54 +101,12 @@ - - - - - - - - - - - - - - insert into instance_operation_cfs_param ( - instance_operation_cfs_param_uid,instance_operation_uid,svc_operation_cfs_param_id,param_value,dt_created,creator_id - ) values ( - - , - , - , - , - , - ); - - - - - - - - - ---> + @@ -200,12 +159,13 @@ insert into instance_operation_cfs_param ( - instance_operation_cfs_param_uid,instance_operation_uid,svc_operation_cfs_param_id,param_value,dt_created,creator_id + instance_operation_cfs_param_uid,instance_operation_uid,svc_operation_cfs_param_id,param_value,note,dt_created,creator_id ) values ( , , , + , , , ); diff --git a/v1/resources/svc.cfc b/v1/resources/svc.cfc index 1bec37e..7f2da84 100644 --- a/v1/resources/svc.cfc +++ b/v1/resources/svc.cfc @@ -27,6 +27,7 @@ (select url from svc_operation so where so.operation='create' AND so.svc_id=s.svc_id limit 1) as create_url s.is_production_ready s.descr + s.man from svc s where svc_id= @@ -40,6 +41,7 @@ j.operation j.url j.descr + j.man from svc_operation j where j.svc_id= diff --git a/v1/resources/svc_ls.cfc b/v1/resources/svc_ls.cfc index 78a7834..41cba71 100644 --- a/v1/resources/svc_ls.cfc +++ b/v1/resources/svc_ls.cfc @@ -12,77 +12,13 @@ svc_id={prefix="s", type="integer"}, is_production_ready={prefix="s", type="boolean"}, svc={prefix="s", type="string"}, - code={prefix="s", type="string"} + code={prefix="s", type="string"}, + descr={prefix="s", type="string"}, + man={prefix="s", type="string"} } /> - - - - - - - - - - - - - - - - - - - - - - select - - s.svc_id - s.svc - (select url from svc_operation so where so.operation='create' AND so.svc_id=s.svc_id limit 1) as create_url - s.descr - to_char(s.dt_created, 'YYYY-MM-DD"T"HH24:MI:SS.FF3TZHTZM') as dt_created - to_char(s.dt_updated, 'YYYY-MM-DD"T"HH24:MI:SS.FF3TZHTZM') as dt_updated - - from svc s - where 1=1 - order by - limit #maxrows# - - - - select count(*) as cnt - from svc - where 1=1 - - - - - - - - - - - - - - - - - - - - - ---> - - + @@ -124,6 +60,7 @@ (select url from svc_operation so where so.operation='create' AND so.svc_id=s.svc_id limit 1) as create_url s.is_production_ready s.descr + s.man to_char(s.dt_created, 'YYYY-MM-DD"T"HH24:MI:SS.FF3TZHTZM') as dt_created to_char(s.dt_updated, 'YYYY-MM-DD"T"HH24:MI:SS.FF3TZHTZM') as dt_updated diff --git a/v1/resources/svc_operation.cfc b/v1/resources/svc_operation.cfc index 3a1c4ba..ff4d8f2 100644 --- a/v1/resources/svc_operation.cfc +++ b/v1/resources/svc_operation.cfc @@ -22,6 +22,7 @@ o.operation o.url o.descr + o.man from svc_operation o where o.svc_operation_id= @@ -42,6 +43,7 @@ p.regex p.unique_scope p.descr + p.man ( select 1 from svc_operation_cfs_param m join svc_operation om on m.svc_operation_id=om.svc_operation_id