This message was deleted.
# ask-for-help
s
This message was deleted.
a
I believe the FastAPI generated swagger is included in the bento swagger if you add the FastAPI app to the bentoml.Service
e
@Yair Liberzon If I understand you correctly, and you just want to add another endpoint to the service (that will appear in the Swagger UI) just create another
@svc.api(...)
decorated function and it will appear there. For example, we had something like (not very useful, but was used during development)
Copy code
@svc.api(...)
def feature_importance(..):
   ....
   return dict(feature_importance)
It was an endpoint that returned the feature importance dictionary