ZHANG Hao.h Thanks for posting your question in Microsoft Q&A. Please find the answers for your questions below:
- Currently it is not possible to add any operation other than
onHandshakeoperation in WebSocket API including HTTP POST, and some limitations are detailed here.
- From your description and the referenced link, you have WebSocket API in APIM with URL suffix
/clientbut unable to add HTTP API for the same suffix. You can add a new HTTP Api with suffix
/client/negotiate, POST operation with suffix
/to handle negotiate requests. This scenario might be helpful in some situations, and I would suggest you testing it out or consider alternate solution like Application Gateway. I found an article with similar scenario https://www.codit.eu/blog/using-api-management-websockets/ with different approach and thought it might be helpful for you.
Our product team have backlog item for integrating APIM Management with SignalR and recommend you posting your feedback in https://aka.ms/apimwish. Others with similar interests can upvote your idea/feedback and that helps our product team to prioritize the features.
I hope this helps with your question and let me know if you have any other questions.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.