Files
svc-api-x/v1/resources/param_value_list.cfc
T

29 lines
1.1 KiB
Plaintext

<cfcomponent extends="taffy.core.resource" taffy:uri="/param-value-list/{svcOperationCfsParamId}" hint="deprecated">
<cfsilent>
<cfimport prefix="m" taglib="../lib"/>
<cfset this.helper=CreateObject("component","lib.rest_api_helper")/><!---*** странно, почему мы его видим?---><!---вынести в апп?--->
</cfsilent>
<cffunction name="get" hint="Список значений CFS параметра операции">
<cfargument name="svcOperationCfsParamId" type="string" required=true hint="type:integer"/>
<!--- сначала нам известен только параметр сервиса. вся остальная инфа поступает через аргументы --->
<cfset var local={}/>
<cfquery name="local.qParam">
select p.depends_on_params
from svc_operation_cfs_param p
where p.svc_operation_cfs_param_id = <cfqueryparam cfsqltype="cf_sql_integer" value=#arguments.svcOperationCfsParamId#/>
</cfquery>
<cfreturn noData().withStatus(204, "OK") />
</cffunction>
<!---
/instanceOperationCfsParams/{instanceOperationCfsParamUid}" --->
</cfcomponent>