@@ -89,23 +89,23 @@ Feature: demo symfony application
89
89
Scenario : Use Bundle with default method resolver with JSON-RPC method tags
90
90
Given DemoApp will use JsonRpcHttpServerBundle
91
91
# Ensure the two methods with tag have been loaded
92
- When I send following "POST" input on "/my- json-rpc-endpoint " demoApp kernel endpoint:
92
+ When I send following "POST" input on "/json-rpc" demoApp kernel endpoint:
93
93
"""
94
94
{"jsonrpc": "2.0", "method": "bundledMethodA", "id": 1}
95
95
"""
96
96
Then I should have a "200" response from demoApp with following content:
97
97
"""
98
98
{"jsonrpc":"2.0", "result":"MethodA", "id":1}
99
99
"""
100
- When I send following "POST" input on "/my- json-rpc-endpoint " demoApp kernel endpoint:
100
+ When I send following "POST" input on "/json-rpc" demoApp kernel endpoint:
101
101
"""
102
102
{"jsonrpc": "2.0", "method": "bundledMethodAAlias", "id": 2}
103
103
"""
104
104
Then I should have a "200" response from demoApp with following content:
105
105
"""
106
106
{"jsonrpc":"2.0", "result":"MethodA", "id":2}
107
107
"""
108
- When I send following "POST" input on "/my- json-rpc-endpoint " demoApp kernel endpoint:
108
+ When I send following "POST" input on "/json-rpc" demoApp kernel endpoint:
109
109
"""
110
110
{"jsonrpc": "2.0", "method": "bundledMethodB", "id": 3}
111
111
"""
@@ -118,15 +118,15 @@ Feature: demo symfony application
118
118
Scenario : Use Bundle with default method resolver with JSON-RPC methods container injection
119
119
Given DemoApp will use JsonRpcHttpServerBundle
120
120
# Ensure the two injected methods have been injected
121
- When I send following "POST" input on "/my- json-rpc-endpoint " demoApp kernel endpoint:
121
+ When I send following "POST" input on "/json-rpc" demoApp kernel endpoint:
122
122
"""
123
123
{"jsonrpc": "2.0", "method": "bundledGetDummy", "id": 1}
124
124
"""
125
125
Then I should have a "200" response from demoApp with following content:
126
126
"""
127
127
{"jsonrpc":"2.0", "result":"MethodC", "id":1}
128
128
"""
129
- When I send following "POST" input on "/my- json-rpc-endpoint " demoApp kernel endpoint:
129
+ When I send following "POST" input on "/json-rpc" demoApp kernel endpoint:
130
130
"""
131
131
{"jsonrpc": "2.0", "method": "bundledGetAnotherDummy", "id": 2}
132
132
"""
@@ -140,31 +140,31 @@ Feature: demo symfony application
140
140
Given DemoApp will use JsonRpcHttpServerBundle
141
141
And I use my DemoApp custom method resolver
142
142
# Ensure all methods have been loaded
143
- When I send following "POST" input on "/my- json-rpc-endpoint " demoApp kernel endpoint:
143
+ When I send following "POST" input on "/json-rpc" demoApp kernel endpoint:
144
144
"""
145
145
{"jsonrpc": "2.0", "method": "customBundledMethodA", "id": 1}
146
146
"""
147
147
Then I should have a "200" response from demoApp with following content:
148
148
"""
149
149
{"jsonrpc":"2.0", "result":"MethodA", "id":1}
150
150
"""
151
- When I send following "POST" input on "/my- json-rpc-endpoint " demoApp kernel endpoint:
151
+ When I send following "POST" input on "/json-rpc" demoApp kernel endpoint:
152
152
"""
153
153
{"jsonrpc": "2.0", "method": "customBundledMethodB", "id": 2}
154
154
"""
155
155
Then I should have a "200" response from demoApp with following content:
156
156
"""
157
157
{"jsonrpc":"2.0", "result":"MethodB", "id":2}
158
158
"""
159
- When I send following "POST" input on "/my- json-rpc-endpoint " demoApp kernel endpoint:
159
+ When I send following "POST" input on "/json-rpc" demoApp kernel endpoint:
160
160
"""
161
161
{"jsonrpc": "2.0", "method": "customBundledMethodC", "id": 3}
162
162
"""
163
163
Then I should have a "200" response from demoApp with following content:
164
164
"""
165
165
{"jsonrpc":"2.0", "result":"MethodC", "id":3}
166
166
"""
167
- When I send following "POST" input on "/my- json-rpc-endpoint " demoApp kernel endpoint:
167
+ When I send following "POST" input on "/json-rpc" demoApp kernel endpoint:
168
168
"""
169
169
{"jsonrpc": "2.0", "method": "customBundledMethodD", "id": 4}
170
170
"""
0 commit comments