Photo of Long Pham


REST API and GET method


I'm using the REST API to login but when POSTing to /api/Auth/Login, I'm getting the exception:

The requested resource does not support http method 'GET'

After looking at all the Rock configuration, I'm thinking that this error has more to do with IIS configuration rather than Rock configuration, to allow GET requests.  Does this sound right ?  If yes, is there a guide to configure IIS to allow this ?   

FYI, my test code POSTing to works fine.


  • Photo of Spurgeon Balasundaram


    Hi Long! 

    /api/Auth/Login endpoint expects a POST request. Not GET request.