data fetching
# help-with-umbraco
m
i have data create in backoffice using block list editor and i watch to fetch this data to the frontend using javascript.
s
If you want some data - and create a custom model you could use the https://docs.umbraco.com/umbraco-cms/reference/routing/umbraco-api-controllers/ If you want html markup back then you could still use this but have an intermediate step where your blocks are rendered, html returned in an api call.
m
Thanks I used content delivery api for the implementation
But how do I create custom models
s
Do you mean make the delivery api return a custom model?
m
@Sven Geusens was trying understand how to go about using API controllers
s
Did you figure it out?
m
Not yet
Result [{"nodeName":"Parent1","childCount":2},{"nodeName":"Parent2","childCount":3}]
m
Thanks 💯💯
s
No problem, enjoy your weekend!
m
And you too