/examples/api_jsonutil/resources/artMember.cfc
http://github.com/atuttle/Taffy · ColdFusion CFScript · 22 lines · 16 code · 6 blank · 0 comment · 0 complexity · dc2c37846c96f08cd41d4e163daaaccc MD5 · raw file
- <cfcomponent extends="taffy.core.resource" taffy_uri="/artist/{artistId}/art/{artId}">
- <cfset variables.dummyData = StructNew() />
- <cfset variables.dummyData.whatever = true />
- <cffunction name="get" access="public" output="false">
- <cfreturn representationOf(variables.dummyData).withStatus(200) />
- </cffunction>
- <cffunction name="post" access="public" output="false">
- <cfreturn representationOf(variables.dummyData).withStatus(200) />
- </cffunction>
- <cffunction name="put" access="public" output="false">
- <cfreturn representationOf(variables.dummyData).withStatus(200) />
- </cffunction>
- <cffunction name="delete" access="public" output="false">
- <cfreturn representationOf(variables.dummyData).withStatus(200) />
- </cffunction>
- </cfcomponent>