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"`|
347
349
348
350
For more routing options, see the [Membrane API documentation](https://www.membrane-api.io/docs/current/api.html).
349
351
@@ -358,7 +360,7 @@ The following configuration creates a health check endpoint that responds to req
358
360
<api port="2000">
359
361
<path>/health</path>
360
362
<response>
361
-
<static>I'am fine.</static>
363
+
<static>I'm good.</static>
362
364
</response>
363
365
<return statusCode="200"/>
364
366
</api>
@@ -431,7 +433,7 @@ The following API executes a Groovy script during the request and the response.
431
433
```xml
432
434
<api port="2000">
433
435
<groovy>
434
-
println "I'am executed in the ${flow} flow"
436
+
println "I'm executed in the ${flow} flow"
435
437
println "HTTP Headers:\n${header}"
436
438
</groovy>
437
439
<target url="https://api.predic8.de"/>
@@ -441,13 +443,13 @@ The following API executes a Groovy script during the request and the response.
441
443
After invoking [http://localhost:2000](http://localhost:2000) you can see the following output in the console where you have started Membrane:
442
444
443
445
```text
444
-
I'am executed in the REQUEST flow
446
+
I'm executed in the REQUEST flow
445
447
HTTP Headers:
446
448
Host: localhost:2000
447
449
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0
448
450
...
449
451
450
-
I'am executed in the RESPONSE flow
452
+
I'm executed in the RESPONSE flow
451
453
HTTP Headers:
452
454
Content-Length: 390
453
455
Content-Type: application/json
@@ -690,7 +692,7 @@ This template will transform the JSON input into plain text:
690
692
691
693
### Transform XML into Text or JSON
692
694
693
-
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.
694
696
plugin.
695
697
696
698
```xml
@@ -1011,7 +1013,7 @@ The `jsonProtection` plugin safeguards APIs from JSON-based vulnerabilities by s
0 commit comments