When processing this, jetty uses it's OPTIONS handler since text/html is of higher quality and does not call our method.
Since there is body currently defined to be generated for OPTIONS method, the rdl generator should not include the @Produces(MediaType.APPLICATION_JSON) annotation.
We're using OPTIONS http method for CORS requests. RDL generates the following resource for the command:
The latest Firefox when issuing the command, uses the following value for Accept header:
When processing this, jetty uses it's OPTIONS handler since text/html is of higher quality and does not call our method.
Since there is body currently defined to be generated for OPTIONS method, the rdl generator should not include the @Produces(MediaType.APPLICATION_JSON) annotation.