Open elhamroshan opened 4 years ago
I've been busy elsewhere, sorry for the delay. I'll check this tomorrow morning. Promise.
There is an example in the project of using headers: raml-to-jaxrs/examples/maven-examples/raml-defined-example/src/main/java/server/humanity/HumanityImpl.java
But if you could give me a mode complete example maybe I could see what is wrong ?
I'm trying to set Access-Control-Allow-Origin in my Raml API. Found in the web that I can do that by adding headers to my responses like:
I've done this but it fails compiling the code with the following error:
Current java code when returning the response:
return GetApiV1ProjectsResponse.respond200WithApplicationJson(projectsToJson(restResponse));
Should I add any changes to my response implementation? What is missing here?
Thanks in advance!