generate endpoint functions
mostly working endpoints
rewrite http function body
add support for casting from strings