From ba0092033631d5bb3b13f0045a5531f4924adc6e Mon Sep 17 00:00:00 2001 From: msyu Date: Thu, 10 Jul 2025 12:15:17 +0300 Subject: [PATCH] 124 svc_grouped_ls reorganized --- v1/Application.cfc | 2 +- v1/lib/field_set.cfm | 2 +- v1/lib/rest_api_helper.cfc | 2 +- v1/resources/instance_operation_default.cfc | 2 +- v1/resources/svc_grouped_ls.cfc | 61 ++++++++++++++------- 5 files changed, 46 insertions(+), 23 deletions(-) diff --git a/v1/Application.cfc b/v1/Application.cfc index 1be4ff5..f651c46 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.123"; /*$ git config --global --unset user.password*/ + variables.framework.docs.APIVersion="0.124"; /*$ git config --global --unset user.password*/ variables.framework.globalHeaders = structNew(); diff --git a/v1/lib/field_set.cfm b/v1/lib/field_set.cfm index b990b40..dc63f96 100644 --- a/v1/lib/field_set.cfm +++ b/v1/lib/field_set.cfm @@ -17,7 +17,7 @@ - + diff --git a/v1/lib/rest_api_helper.cfc b/v1/lib/rest_api_helper.cfc index 23221d9..fe7fa16 100644 --- a/v1/lib/rest_api_helper.cfc +++ b/v1/lib/rest_api_helper.cfc @@ -39,7 +39,7 @@ - + diff --git a/v1/resources/instance_operation_default.cfc b/v1/resources/instance_operation_default.cfc index 34c9df7..44fb5d4 100644 --- a/v1/resources/instance_operation_default.cfc +++ b/v1/resources/instance_operation_default.cfc @@ -229,4 +229,4 @@ - \ No newline at end of file + diff --git a/v1/resources/svc_grouped_ls.cfc b/v1/resources/svc_grouped_ls.cfc index 5f37009..a3a104e 100644 --- a/v1/resources/svc_grouped_ls.cfc +++ b/v1/resources/svc_grouped_ls.cfc @@ -15,7 +15,7 @@ is_production_ready={prefix="s", type="boolean"}, svc={prefix="s", type="string"}, svc_short={prefix="s", type="string"}, - orchestrator_name={prefix="s", type="string"}, + code={prefix="s", type="string"}, version={prefix="s", type="string"}, descr={prefix="s", type="string"}, @@ -30,14 +30,12 @@ ---> - - + - + ---> @@ -48,13 +46,11 @@ - - + - select @@ -62,7 +58,7 @@ s.svc_id s.svc s.svc_short - s.orchestrator_name + s.code (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 @@ -79,37 +75,47 @@ from svc s left outer join svc_group_svc sg on (s.svc_id=sg.svc_id AND sg.is_enabled) left outer join svc_group g on (sg.svc_group_id=g.svc_group_id) - where 1=1 + where 1=1 order by g.sort, g.svc_group_id length limit---> - + + - + ---> - + - + - > - - + + + + > + + + + + + + + + + @@ -120,5 +126,22 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file