Skip to content

Is it possible to perform GET request #2179

Answered by parano
poryee asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @poryee - using an GET request in 0.13 version is not supported unfortunately. The new 1.0 version is around the corner, in BentoML 1.0, user can customize the API server with any WSGI/ASGI web framework, such as FastAPI or Flask. Through which, you can define custom HTTP endpoint in addition to the default endpoints provided in BentoML. You can find some sample code here: https://github.com/bentoml/BentoML/tree/7d50d7e7ab45b411607ba9ec3431425d72d7f522/bentoml/_internal/server

Mounting a Flask App to Service

Use Service#mount_wsgi_app to mount flask app to a Service. This works for any WSGI based python web application.

# hello.py
import bentoml
from bentoml.io import JSON
from flask i…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@poryee
Comment options

@parano
Comment options

Answer selected by poryee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants