You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "James Bognar (JIRA)" <ji...@apache.org> on 2019/03/25 15:58:00 UTC

[jira] [Created] (JUNEAU-100) REST_allowedMethodHeaders / @RestResource(allowedMethodHeaders) / @RestMethod(allowedMethodHeaders)

James Bognar created JUNEAU-100:
-----------------------------------

             Summary: REST_allowedMethodHeaders / @RestResource(allowedMethodHeaders) / @RestMethod(allowedMethodHeaders)
                 Key: JUNEAU-100
                 URL: https://issues.apache.org/jira/browse/JUNEAU-100
             Project: Juneau
          Issue Type: New Feature
          Components: Code
    Affects Versions: 8.0.0
            Reporter: James Bognar


New properties: 

REST_allowedMethodHeaders - Comma-delimited list of valid HTTP method names allowed to be specified via X-Method request headers.

@RestResource(allowMethodHeaders=true) - Allow X-Method to be used for all methods in a class.
@RestResource(allowedMethodHeaders="GET,POST") - Allow X-Method to be used for the specified methods in a class.

@RestMethod(allowMethodHeaders=true) - Allow X-Method to be used for all methods in a class.



Likewise, allow method params to be specified in the same way:

@RestResource(allowMethodParams=true) - Allow &method= to be used for all methods in a class.
@RestResource(allowedMethodParams="GET,POST") - Allow &method= to be used for the specified methods in a class.

@RestMethod(allowMethodParams=true) - Allow &method= to be used for all methods in a class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)