best way to do a restful api using cfwheels.

291 views
Skip to first unread message

Samson Quaye

unread,
Oct 2, 2011, 8:00:38 AM10/2/11
to ColdFusion on Wheels
hello,
i would like to know what is the best way to build a restful api using
cfwheels as your middle ware.

tpet...@gmail.com

unread,
Oct 3, 2011, 8:40:06 AM10/3/11
to ColdFusion on Wheels
check out episode 14 of the screencasts

http://cfwheels.org/screencasts/view/15

also look at the documentation of renderWith()

http://cfwheels.org/docs/1-1/function/renderwith

basically all you're doing is telling wheels to render the output as
json rather than html.

depending though on what other functionality you're app is going to
do, it might more sense to use a framework like taffy to build the
api:

https://github.com/atuttle/Taffy

and you can still get some ORM goodness in with taffy by using CFREL:

https://github.com/dhumphreys/cfrel

squa...@gmail.com

unread,
Oct 3, 2011, 9:12:23 AM10/3/11
to "ColdFusion on Wheels", "tpetruzzi@gmail.com"
Hello tpetruzzi,

--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.

Reply all
Reply to author
Forward
0 new messages