Files
svc-api-x/v1/taffy/examples/ParentApplication/model/fooCollection.cfc
2024-10-23 11:17:42 +03:00

13 lines
549 B
Plaintext

<cfcomponent extends="taffy.core.resource" taffy_uri="/foo">
<cffunction name="get" access="public" output="false">
<cfreturn representationOf(variables.fakeData.getData()).withStatus(200) />
</cffunction>
<!--- this will be called by the bean factory's autowire functionality --->
<cffunction name="setFakeData" access="public" output="false" returnType="void">
<cfargument name="fakeDataObj" type="any" required="true" hint="Shared FakeData object" />
<cfset variables.fakeData = arguments.fakeDataObj />
</cffunction>
</cfcomponent>