0
votes

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?

1

1 Answers

0
votes

The output of Jira's REST API is always JSON, so you'll have to do the conversion to XML within in your groovy code.

Try reading this article and this article for some examples.