Feature #9327

Make the resource argument name for REST controllers configurable

Added by Robert Lemke almost 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
MVC
Start date:
2010-08-16
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

The (not yet fully functional) RestController automatically selects the appropriate action depending on the request type (GET, PUT, DELETE etc.) and if a resource was specified. By now the controller assumes that the resource for show() etc. is specified by an argument called "id". This is, however, old-fashioned, not really DDD compliant and unflexible.

Let's make "resource" the default argument name and allow developers to specify a differing name if necessary.

#1

Updated by Robert Lemke almost 11 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r4989.

Also available in: Atom PDF