File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Creating [ReactPHP HTTP Server](https://github.com/reactphp/http) but with REST
9
9
* [ Server] ( #server )
10
10
* [ Dynamic Values] ( #dynamic-values )
11
11
* [ Default Callback] ( #default-callback )
12
+ * [ Parameter Placeholder] ( #parameter-placholder )
12
13
* [ Install] ( #install )
13
14
* [ License] ( #license )
14
15
@@ -81,6 +82,19 @@ This method will be used if no definition can be found.
81
82
82
83
By default this library will respond with an ` 404 ` HTTP response.
83
84
85
+ ### Parameter Placeholder
86
+
87
+ As seen in the previous chapter you can use the ` : ` to mark
88
+ dynamic values.
89
+ Instead of using this strategy, to mark dynamic parameters,
90
+ this library supports additional strategies via different classes:
91
+
92
+ * ` /to/path/:paramter ` - ` Legionth\React\Http\Rest\Paramaters\Label\Colon `
93
+ * ` /to/path/[paramter] ` - ` Legionth\React\Http\Rest\Paramaters\Label\CurlyBracket `
94
+ * ` /to/path/{paramter} ` - ` Legionth\React\Http\Rest\Paramaters\Label\SquareBrackets `
95
+
96
+ Checkout the examples for more information.
97
+
84
98
## Install
85
99
86
100
The recommended way to install this library is [ through Composer] ( https://getcomposer.org ) .
You can’t perform that action at this time.
0 commit comments