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
parent da2201d16c
commit a3ba81ddbe

View File

@ -504,6 +504,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: