hof’s core design choices was to
make it possible to work directly in the output.
We need to implement our Resource handlers,
so we add our custom code in the generated files.
Here ar the
_Normally, A generator author would provide defaults for the handler body. (expand on this)
We leave the other handlers as an exercise.
Using the Resources
Let’s create and read a user with curl.
hof enables you to both update your designs and edit the output,
while still being able to regenerate the code base and continue customizing.
In the next section we will add relations to our types and data model.
This will require changes to schemas, generators, templates, and custom code.
Since we already have a running server with custom code,
this will be our second iteration with
hof in the develop cycle.