microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.91k stars 1.64k forks source link

Handling REST Delete request CPPRESTSDK #1708

Open samrajput1143 opened 2 years ago

samrajput1143 commented 2 years ago

want to handle delete request on server side by using cpprestsdk. But the problem is the end part of url is string and can contain any value and its is the id of user. ex http://127.0.0.1/subscriptions/1 How to create a single listener for that?.

Do I need to create a separate listener for separate id .Like one http listener for http://127.0.0.1/subscriptions/1 another http listener for http://127.0.0.1/subscriptions/2

I think this method is ugly. Can i create listener in cpprestsdk which is listeneing at

http://127.0.0.1/subscriptions/{userID} and useID can contain any string value.