3 ms·
>I would kinda expect REST framework to be able to generate Swagger (aka OpenAPI) definitions out of the box. Me too, but, as I understand, this is a MVC frame
by DeathArrow 2y ago
>I would kinda expect REST framework to be able to generate Swagger (aka OpenAPI) definitions out of the box.
Me too, but, as I understand, this is a MVC framework that is returning HTML, not a framework to build web APIs.
- throwaway313373 2y agoIt advertises "Built-in REST framework with JSON serialization" in the readme, that's why I asked. Looks like it also supports some kind of models for JSON validation [0], it shouldn't be too hard to generate Swagger from them, just like FastAPI generates Swagger from Pydantic models. [0] https://github.com/levkk/rwf/tree/main/examples/rest https://github.com/levkk/rwf/tree/main/examples/rest