ZenStack Fetch Plugin is a standard plugin of ZenStack to generate fetch from the ZModel schema with ofetch.
TBD
npm i -D @kiki.im.dev/zenstack-fetch
add the plugin in your ZModel schema file
plugin fetch {
provider = '@kiki.im.dev/zenstack-fetch'
}
run zenstack generate
npx zenstack generate
you will see the schema.md
generated in the same folder of your ZModel schema file.
TBD
TBD
simply run npm run dev
to see a more complicated result schema.md generated from schema.zmodel