I have tried the following example:
import...
@BaseScript CustomEndpointDelegate delegate
doSomething(
httpMethod: "GET", groups: ["jira-administrators"]
) { MultivaluedMap queryParams, String body ->
return Response.ok("my response").build()
}
from here
Always the content type of the response is JSON. How can i chang it to XML please?