This message was deleted.
# ask-for-help
s
This message was deleted.
j
Hi @Jaydeep Samanta, this has been a feature that's requested many times, I'll bring it up again to the team. Currently there's no public API to allow user to configure the name and paramaters manually. For description, you can either do it via a docstring or a
doc
parameter
Copy code
@svc.api(doc="my descriptions, ...)
def my_route():
...
or
Copy code
@svc.api(...)
def my_route():
   """
   my descriptions here
   """
   ...
In our roadmap, we will be creating BentoML UI which is equivalent to swagger. For the name, you can use this workaround
Copy code
import bentoml._internal.service.openapi as X

X.APP_TAG = X.Tag(name="My Own Services", description="BentoML App")
j
Thank you so much @Jian Shen Yap for sharing the workaround for name and description, this works good.
Sorry for again asking in the same thread, is there a way to modify the path shown in swagger UI
Copy code
<http://0.0.0.0:3000/#/Service%20APIs/iris_classifier__classify>
j
hi @Jaydeep Samanta, sorry for the late reply, I kinda let this slipped. there's a
route
parameter that you can passed on the
svc.api
. otherwise, it will infer from the name of the function
j
Alright!, Thanks @Jian Shen Yap I will give it a try.