PageRenderTime 6ms CodeModel.GetById 3ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 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</cfcomponent>