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:
parent
7b261ac99d
commit
40cbf37d64
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user