I am using Grails 3 version for building RESTFUL web services and followed the below steps to provide the API to validate user. Instead of json response getting the login ur