cpprestsdk
cpprestsdk copied to clipboard
Handling REST Delete request CPPRESTSDK
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.