none
Using WebApi.Hal and Route attribute RRS feed

  • Question

  • First, thanks for reading.
    The problem: Im using WebApi.Hal library.
    If i call an Action with a simple Api request works fine. But when i use a Route decorator ex:
    [Route("~/api/pepe/{id:int}/myitems")]

    The response its only in json and no hal+json.
    I used the accept header content type but doesnt work.
    Any idea?
    Thanks!

    Friday, March 24, 2017 2:23 PM

All replies

  • Hi Juan Groia,

    This forum discuss and asks questions about .NET Framework Base Classes, Since your issue is more related to asp.net webapi, I would suggest that you could post your issue on asp.net webapi forum for suitable support.

    https://forums.asp.net/1246.aspx/1?Web+API

    Thanks for your understanding.

    Best regards,

    Cole Wu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, March 27, 2017 1:48 AM
    Moderator