cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

Handling REST Delete request CPPRESTSDK

Open samrajput1143 opened this issue 3 years ago • 0 comments

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.

samrajput1143 avatar Jun 01 '22 06:06 samrajput1143