POST method using HTTP request with Ray Serve

Hello guys,

I am using Ray Serve to deploy my DL models for image classification. So I want to send an image through an HTTP request to Ray Serv. I am using the curl command but I got this error

" methods post not allwoed. Available HTTP methods are [‘GET’] "

How can I fix it please!

Thanks guys :wink:

Hi @aamrani-dev, try adding 'POST' to the methods parameter in create_endpoint for your Serve endpoint: Serve API Reference — Ray v2.0.0.dev0