atuttle / Taffy

:candy: The REST Web Service framework for ColdFusion and Lucee
http://taffy.io
Other
226 stars 117 forks source link

Allow bare return from resources #399

Closed atuttle closed 3 years ago

atuttle commented 3 years ago

Resolves #366

If a resource returns anything other than a representation instance, wrap it in an instance for the user

Full credit for the idea goes to @y2kiah -- I was only going to have it throw a more useful error message, but why not do the developer a favor?

atuttle commented 3 years ago

This is ready to go but undocumented. I'm having trouble deciding how to document it. There's not an obvious place to add it in the docs, nor in the getting started guide.

We could let it be undocumented... I don't love that idea.

We could move the getting-started information to the docs site. In fact I wrote a blog post that was a brain-dump of everything you needed to know getting started in 2020 that we could use a a baseline for a new page of the docs... Maybe it could fit into there?