Asp.Net Web Api Routing RRS feed

  • Question

  • I am working on implementing REST based services using web api. The request parameter from clients will be a JSON in the below format.

       <OperationType = 'Authentication'>
       <Data based on operation type>

    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.


    • Moved by KareninstructorMVP Thursday, September 11, 2014 11:58 AM ASP.NET question in C# forum
    Thursday, September 11, 2014 11:26 AM


  • Hello,

    ASP.NET support can be found under ASP.NET support forum which is a different site then this one.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

    • Proposed as answer by Just Karl Thursday, September 11, 2014 6:04 PM
    • Marked as answer by Just Karl Thursday, September 18, 2014 9:12 PM
    Thursday, September 11, 2014 11:57 AM