« Previous | Next » 

Revision 07ab7988

ID07ab7988577c6a2c8656707820d8db1a5f08545b
Parent 6a903791

Added by Bastian Waidelich over 8 years ago

[FEATURE] Bind routes to HTTP request methods

This change allows routes to be limited to certain request methods.
This is especially useful for REST services where you often need the
same URI to invoke different actions depending on the HTTP method.

Usage::

-
uriPattern: 'foo/bar'
defaults:
'@package': 'Some.Package'
'@controller': 'Standard'
'@action': 'first'
httpMethods: ['GET']
-
uriPattern: 'foo/bar'
defaults:
'@package': 'Some.Package'
'@controller': 'Standard'
'@action': 'second'
httpMethods: ['POST', 'PUT']

Change-Id: I1d53d20ac4675bc0cc4e58a33c08a656383f1a9f
Resolves: #27117
Releases: master, 2.0

  • added
  • modified
  • copied
  • renamed
  • deleted