ZeroIntensity / view.py

The Batteries-Detachable Web Framework
https://view.zintensity.dev
MIT License
205 stars 15 forks source link

OpenAPI Support #103

Open ZeroIntensity opened 10 months ago

ZeroIntensity commented 10 months ago

Improvement Description

OpenAPI has some features that can be quite useful for generating and using API's. It was not implemented before because I didn't want to. This will probably end up deprecating the current documentation generation API (which isn't public anyway), but the markdown content generation will likely stay the same.

Improvement Request Example API

from view import new_app

app = new_app()
app.spec()  # openapi specification

Anything else?

This will delay #74.