/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

  1. <cfcomponent extends="taffy.core.resource" taffy_uri="/artist/{artistId}/art">
  2. <cfset variables.dummyData = StructNew() />
  3. <cfset variables.dummyData.whatever = true />
  4. <cffunction name="get" access="public" output="false">
  5. <cfreturn representationOf(variables.dummyData).withStatus(200) />
  6. </cffunction>
  7. <cffunction name="post" access="public" output="false">
  8. <cfreturn representationOf(variables.dummyData).withStatus(200) />
  9. </cffunction>
  10. </cfcomponent>