php bin/fusio api:generate -f typescript output
This command generates for every route a typescript file inside the output folder which contains a class to call the endpoint.
If you are not happy with the generated code, you can take a look at the
psx-schema libraries which are
responsible for the code generation. There you can build your own custom generator or provide suggestions to existing