REST: Routes with default values #110
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
experiment
suggestion
support
Testing
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/framework#110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I would like to be able to set default values for methods when using the @route annotation. This would be useful to have a single method handle multiple routes and use different values for parameters.
Take the following for example:
This would have the
$single
parameter default tofalse
and so when calling /listofitems the value of false is used. However if we call /item we are executing the same method except that the value of$single
is now true.changed the description
created branch
110-rest-routes-with-default-values
mentioned in merge request !27
closed via commit
4fd9a05d97
closed via merge request !27
changed milestone to %4