Generating TAFFY from Swagger \ OpenAPI

Skip to first unread message

Michael Collins

Jul 13, 2017, 11:19:40 AM7/13/17
to Taffy Users
So I posted about taking Taffy to Swagger, now I am looking at going the other way.  Swagger to Taffy code.

Swagger supports defining many taffy:uri to each 'get' method, so I am wondering how this translates to Taffy.  Does that mean I need a 3 CFCs like the attached image shows.

Does taffy support something like this - this would be equivalent to the restpath attribute in cffunction inside CF REST.

I see taffy has 3 things at the function level taffy:verb,taffy:mime and taffy:default but nothing like path.  



Michael Collins

Jul 13, 2017, 11:53:41 AM7/13/17
to Taffy Users
I have since found this post raising the same question.

That answers my question, just wanted to make sure I was not missing anything.


Adam Tuttle

Jul 14, 2017, 4:26:38 PM7/14/17
to Taffy Users
I'm on mobile and that deep link isn't working in the mobile friendly Google groups UI, so I'm winging it.

Long story short, each distinct URI is its own component in Taffy's opinion. There is component level metadata to set this.

Any code generator should generate one CFC per URI.


You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit
Reply all
Reply to author
0 new messages