/examples/api_anythingtoxml/resources/artCollection.cfc
http://github.com/atuttle/Taffy · ColdFusion CFScript · 14 lines · 10 code · 4 blank · 0 comment · 0 complexity · ae1dd2a8cd8775f14c051f2bf000a5be MD5 · raw file
- <cfcomponent extends="taffy.core.resource" taffy_uri="/artist/{artistId}/art">
- <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>
- </cfcomponent>