Add example to REST API module command documentation

Added an example that demonstrates how to call a module command with
parameters via the REST API.
This commit is contained in:
Markus Mäkelä 2017-10-03 13:40:30 +03:00 committed by Johan Wikman
parent 7b261ac99d
commit 40cbf37d64

View File

@ -505,6 +505,13 @@ For commands that can modify data:
POST /v1/maxscale/modules/:module/:command
```
Here is an example POST requests to the dbfwfilter module command _reload_ with
two parameters, the name of the filter instance and the path to a file:
```
POST /v1/maxscale/modules/dbfwfilter/reload?my-dbfwfilter-instance&/path/to/file.txt
```
#### Response
Command with output: