Trying to reach my REST endpoint the request.JSON
is empty after executing this:
RestResponse response = rest.get("http://localhost:8080/${grailsApplication.metadata.'app.name'}/ws/question") {
json([
occurrenceId: 'f6f8a9b8-4d52-49c3-9352-155f154fc96c',
userId: userKeef.alaUserId,
tags: 'octopus, orange',
comment: 'whatever'
])
}
but it works with a POST request: rest.post(...