diff --git a/v1/Application.cfc b/v1/Application.cfc index d3a7f08..397201c 100644 --- a/v1/Application.cfc +++ b/v1/Application.cfc @@ -57,7 +57,7 @@ //variables.framework.docs={}; variables.framework.docs.APIName="svc-api"; - variables.framework.docs.APIVersion="0.231"; /*$ git config --global --unset user.password*/ + variables.framework.docs.APIVersion="0.232"; /*$ git config --global --unset user.password*/ variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/resources/bookmark_ls.cfc b/v1/resources/bookmark_ls.cfc index 7bf9dd4..44f5133 100644 --- a/v1/resources/bookmark_ls.cfc +++ b/v1/resources/bookmark_ls.cfc @@ -14,7 +14,7 @@ bookmark={prefix="b", type="string"}, url={prefix="b", type="string"}, icon_url={prefix="b", type="string"}, - descr={prefix="b", type="integer"}, + descr={prefix="b", type="string"}, is_enabled={prefix="b", type="boolean"}, sort={prefix="b", type="integer"} } diff --git a/v1/resources/catalog_service_ls.cfc b/v1/resources/catalog_service_ls.cfc new file mode 100644 index 0000000..ef27bbb --- /dev/null +++ b/v1/resources/catalog_service_ls.cfc @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select + + service_id + business_line_id + business_line + area_id + area + area_code + analytic_code + abstract_service_id + abstract_service + abstract_service_code + abstract_service_status_id + abstract_service_status + service_code + service + modifier + modifier_code + measure_id + service_status_id + service_status + measure_short + sort + vat_perc + vat_free + vat_rate + capacity_legend + commercial_note + is_published + dt_load + + from service_catalog.service s + where 1=1 + order by analytic_code + , abstract_service + , service_id + , coalesce(sort,0) + + limit #maxrows# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + function plain2htm(s) { + return replace(replace(s, chr(13),'',"ALL"),chr(10),'
', "ALL"); + } + //request.plain2htm = plain2htm; + + function htm2plain(s) { + return replaceNoCase(s, '
', '#chr(13)##chr(10)#', "ALL"); + } + //request.htm2plain = htm2plain; + + function cleanHtm(s) { + return replaceList(s, '<,>,"', '<,>,"'); + } + //request.cleanHtm = cleanHtm; +
+ + + + + + + + + + + +
\ No newline at end of file diff --git a/v1/resources/catalog_service_param_ls.cfc b/v1/resources/catalog_service_param_ls.cfc new file mode 100644 index 0000000..20b53e9 --- /dev/null +++ b/v1/resources/catalog_service_param_ls.cfc @@ -0,0 +1,205 @@ + + + + + + + + + + ,sort={prefix="s", type="cf_sql_integer"} + ,vat_perc={prefix="s", type="cf_sql_integer"} + ,vat_free={prefix="s", type="cf_sql_bit"} + ,vat_rate={prefix="s", type="cf_sql_numeric"} + ,capacity_legend={prefix="s", type="cf_sql_integer"} + ,commercial_note={prefix="s", type="cf_sql_varchar"} + ,is_published={prefix="s", type="cf_sql_bit"} + } + /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select + + p.service_param_id + p.service_id + p.service_param + p.param + p.component_code + p.component + p.measure_id + p.measure_short + p.min_value + p.max_value + p.incr + p.param_class_sort + p.param_sort + p.sku + p.is_multiple + p.dt_load + + s.business_line_id + s.business_line + s.area_id + s.area + s.area_code + s.analytic_code + s.abstract_service_id + s.abstract_service + s.abstract_service_code + s.abstract_service_status_id + s.abstract_service_status + s.service_code + s.service + s.modifier + s.modifier_code + + s.service_status_id + s.service_status + + s.sort + s.vat_perc + s.vat_free + s.vat_rate + s.capacity_legend + commercial_note + s.is_published + + from service_catalog.service_param p + join service_catalog.service s on (p.service_id=s.service_id) + where 1=1 + order by analytic_code + , abstract_service + , service_id + , coalesce(sort,0) + + limit #maxrows# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + function plain2htm(s) { + return replace(replace(s, chr(13),'',"ALL"),chr(10),'
', "ALL"); + } + //request.plain2htm = plain2htm; + + function htm2plain(s) { + return replaceNoCase(s, '
', '#chr(13)##chr(10)#', "ALL"); + } + //request.htm2plain = htm2plain; + + function cleanHtm(s) { + return replaceList(s, '<,>,"', '<,>,"'); + } + //request.cleanHtm = cleanHtm; +
+ + + + + + + + + + + +
\ No newline at end of file