/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

  1. <cfcomponent extends="taffy.core.resource" taffy_uri="/artist/{artistId}/art/{artId}">
  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. <cffunction name="put" access="public" output="false">
  11. <cfreturn representationOf(variables.dummyData).withStatus(200) />
  12. </cffunction>
  13. <cffunction name="delete" access="public" output="false">
  14. <cfreturn representationOf(variables.dummyData).withStatus(200) />
  15. </cffunction>
  16. </cfcomponent>