juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JUNEAU-100) REST_allowedMethodHeaders / @RestResource(allowedMethodHeaders) / @RestMethod(allowedMethodHeaders)
Date Mon, 25 Mar 2019 15:58:00 GMT
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)

Mime
View raw message