This is a simple utility that generates Refit interfaces from an OpenAPI specification. It takes an OpenAPI JSON file as input, and it will generate Refit interface based on the endpoints in the spec, including the required DTOs that the spec includes for its endpoints.
This is a project I just started working on. Don't expect this to be rock solid. Use at your own risk ;)
This project assumes a couple of things, which might prevent it to be useful for your purpose. Your Mileage May Vary ;)
- all interfaces, and DTOs are generated in one namespace/directory
- AutoRest
- NSwag