Uploaded image for project: 'Juneau'
  1. Juneau
  2. JUNEAU-100

REST_allowedMethodHeaders / @RestResource(allowedMethodHeaders) / @RestMethod(allowedMethodHeaders)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.0.0
    • 8.1.0
    • Code
    • None

    Description

      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.

      Attachments

        Activity

          People

            jamesbognar James Bognar
            jamesbognar James Bognar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: