How To build a REST directive with RedwoodJS Transformer Directives

Inspired by Build a REST directive with GraphQL Tools by Jaime Barton which you can watch here:

Jaime shows you how to build a custom @rest directive with GraphQL Tools to resolve data from a JSON API -- but, we'll use Redwood Directives instead to show how you can still implement this feature but not have to go deep into the GraphQL structure.

And ... we'll add a way to fetch a single item from a JSON API ... andtests!

Demo

Browse some Posts and also some Photos.

You can also use the navigation above.

More Info

Learn How To Build a RedwoodJS @rest Directive