Improve function OrthancPlugins::RegisterRestCallback<T>

Hi Author,
I am using this function to register rest callback. However there is a limitation of this function is that the key is just URL. I cannot find a way to combine URL and HTTP method (GET, POST, PUT/ PATCH, DELETE) as a key. So for example, I want to register an API with same URL but different method, it’s not feasible. There is absolutely workaround solution is using a helper method, then depending on the calling method (POST, GET …), it continues to route to appropriate function which serve for POST or GET purpose. But that is not so intuitive comparing to other REST framework like Spring or Python Flask. …
Do you have any plan in your roadmap to improve this function ?

Thanks,
Chris

Hi Christophe,

I get your point but, right now, there are no plans to change that. We are not even thinking of comparing the SDK to Spring or Flask :slight_smile:

Best regards,

Alain