{{ message }}
-
Beta Was this translation helpful? Give feedback.
Answered by
jknack
May 13, 2026
Replies: 1 comment 3 replies
-
|
It is a validation rule, you need to read the parameter from context: private static String getThing(Context context) {
// read param you defined in annotation
var apiKey = context.header("x-api-key").value();
System.out.println(apiKey);
return "works!";
} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
coreagile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

It is a validation rule, you need to read the parameter from context: