Closed dwreeves closed 4 years ago
Update on this: the FastAPI suggestion is impractical and silly when I rethink about it. FastAPI is great, but I don't think it makes sense to implement basically a whole different web framework on top of our app.
I think the "bare bones solution" is the best approach, but in addition we should implement semi-automated documentation using a framework like flasgger.
Working with Cameron on this.
Turn the model output into a RESTful API. We will want to do this eventually to assist in integration with the CRWA's Weebly site.
Here are the steps:
There are three ways to do this:
flask.jsonify
. I would probably go with this approach for a MVP of a RESTful API. It won't enforce a lot of the formalities of a RESTful API but that's OK.