Question

Photo of Long Pham

0

REST API and GET method

Hi,

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 http://rock.rocksolidchurchdemo.com/api/Auth/Login/ works fine.

Thanks.


  • Photo of Spurgeon Balasundaram

    0

    Hi Long! 

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