You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`path`| - Request path<br>- Regular expressions can be used with `isRegExp="true"`|
350
349
351
350
For more routing options, see the [Membrane API documentation](https://www.membrane-api.io/docs/current/api.html).
352
351
@@ -361,7 +360,7 @@ The following configuration creates a health check endpoint that responds to req
361
360
<api port="2000">
362
361
<path>/health</path>
363
362
<response>
364
-
<static>I'am fine.</static>
363
+
<static>I'm good.</static>
365
364
</response>
366
365
<return statusCode="200"/>
367
366
</api>
@@ -434,7 +433,7 @@ The following API executes a Groovy script during the request and the response.
434
433
```xml
435
434
<api port="2000">
436
435
<groovy>
437
-
println "I'am executed in the ${flow} flow"
436
+
println "I'm executed in the ${flow} flow"
438
437
println "HTTP Headers:\n${header}"
439
438
</groovy>
440
439
<target url="https://api.predic8.de"/>
@@ -444,13 +443,13 @@ The following API executes a Groovy script during the request and the response.
444
443
After invoking [http://localhost:2000](http://localhost:2000) you can see the following output in the console where you have started Membrane:
445
444
446
445
```text
447
-
I'am executed in the REQUEST flow
446
+
I'm executed in the REQUEST flow
448
447
HTTP Headers:
449
448
Host: localhost:2000
450
449
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0
451
450
...
452
451
453
-
I'am executed in the RESPONSE flow
452
+
I'm executed in the RESPONSE flow
454
453
HTTP Headers:
455
454
Content-Length: 390
456
455
Content-Type: application/json
@@ -693,7 +692,7 @@ This template will transform the JSON input into plain text:
693
692
694
693
### Transform XML into Text or JSON
695
694
696
-
Using `setProperty` you can extract values from XML request or response bodies and store it in properties. Then the properties are available as variables inside `template`.
695
+
Using `setProperty` you can extract values from XML request or response bodies and store it in properties. Then the properties are available as variables inside the `template` plugin.
697
696
plugin.
698
697
699
698
```xml
@@ -1014,7 +1013,7 @@ The `jsonProtection` plugin safeguards APIs from JSON-based vulnerabilities by s
0 commit comments