I am working on implementing REST based services using web api. The request parameter from clients will be a JSON in the below format.
<RequestMessage>
<OperationType = 'Authentication'>
<Data based on operation type>
</RequestMessage>
The Request message can differ in data based on the operation type. What I would like to do is intercept the request message and parse it and based on the operation type I would like to dispatch the processing to an appropriate apicontroller.
Can I have a base apicontroller which will intercept the request and do the dispatching.
I read about the delegatehandler and attribute routing but i am not sure how to implement it.
Thanks