You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
I've done this but it fails compiling the code with the following error:
method respond200WithApplicationJson in class GetApiV1ProjectsResponse cannot be applied to given types;
[ERROR] required: ApiV1Projects.GetApiV1ProjectsResponse.HeadersFor200
[ERROR] found: java.lang.String
[ERROR] reason: actual and formal argument lists differ in length
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 ?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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!
The text was updated successfully, but these errors were encountered: