I use swashbuckle to automatically generate swagger https://www.nuget.org/packages/Swashbuckle/
Then paste swagger definition into the online editor to generate TypeScript client: https://swagger.io/swagger-editor/
(You can also generate offline).
How is RESTyped better than Swagger Codgen?