From 11c0f0cec013506cbb87360ec35235eba7dd8805 Mon Sep 17 00:00:00 2001 From: msyu Date: Mon, 23 Dec 2024 12:28:39 +0300 Subject: [PATCH] 039 added svc_short --- v1/Application.cfc | 2 +- v1/resources/instance_ls.cfc | 8 ++++---- v1/resources/svc.cfc | 1 + v1/resources/svc_ls.cfc | 2 ++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/v1/Application.cfc b/v1/Application.cfc index 1f94344..11487fc 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.038"; + variables.framework.docs.APIVersion="0.039"; variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/resources/instance_ls.cfc b/v1/resources/instance_ls.cfc index f02357c..550762d 100644 --- a/v1/resources/instance_ls.cfc +++ b/v1/resources/instance_ls.cfc @@ -300,7 +300,7 @@ - select svc from svc where svc_id= + select coalesce(svc_short,svc) as svc_short from svc where svc_id= @@ -312,11 +312,11 @@ join contragent k on (d.contragent_id=k.contragent_id) join usr u on (k.contragent_id=u.contragent_id) where u.usr_id= - AND lower(e.display_name) like lower() + AND lower(e.display_name) like lower() AND service_id= - + @@ -327,7 +327,7 @@ - + \ No newline at end of file diff --git a/v1/resources/svc.cfc b/v1/resources/svc.cfc index 7f2da84..9982eec 100644 --- a/v1/resources/svc.cfc +++ b/v1/resources/svc.cfc @@ -23,6 +23,7 @@ s.svc_id s.svc + s.svc_short 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 diff --git a/v1/resources/svc_ls.cfc b/v1/resources/svc_ls.cfc index 41cba71..2ade52e 100644 --- a/v1/resources/svc_ls.cfc +++ b/v1/resources/svc_ls.cfc @@ -12,6 +12,7 @@ svc_id={prefix="s", type="integer"}, is_production_ready={prefix="s", type="boolean"}, svc={prefix="s", type="string"}, + svc_short={prefix="s", type="string"}, code={prefix="s", type="string"}, descr={prefix="s", type="string"}, man={prefix="s", type="string"} @@ -56,6 +57,7 @@ s.svc_id s.svc + s.svc_short 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