/examples/api_jsonutil/resources/artMember.cfc
ColdFusion CFScript | 22 lines | 16 code | 6 blank | 0 comment | 0 complexity | dc2c37846c96f08cd41d4e163daaaccc MD5 | raw file
1<cfcomponent extends="taffy.core.resource" taffy_uri="/artist/{artistId}/art/{artId}"> 2 3 <cfset variables.dummyData = StructNew() /> 4 <cfset variables.dummyData.whatever = true /> 5 6 <cffunction name="get" access="public" output="false"> 7 <cfreturn representationOf(variables.dummyData).withStatus(200) /> 8 </cffunction> 9 10 <cffunction name="post" access="public" output="false"> 11 <cfreturn representationOf(variables.dummyData).withStatus(200) /> 12 </cffunction> 13 14 <cffunction name="put" access="public" output="false"> 15 <cfreturn representationOf(variables.dummyData).withStatus(200) /> 16 </cffunction> 17 18 <cffunction name="delete" access="public" output="false"> 19 <cfreturn representationOf(variables.dummyData).withStatus(200) /> 20 </cffunction> 21 22</cfcomponent>