MXS-2483: Document REST API corrections

The protocol parameter must always be explicitly defined.
This commit is contained in:
Markus Mäkelä
2019-05-28 09:17:09 +03:00
parent 9443e99a17
commit 1d87a1c3bc
2 changed files with 10 additions and 1 deletions

View File

@ -241,6 +241,10 @@ least the following fields.
* `data.type`
* Type of the object, must be `servers`
* `data.attributes.parameters.protocol`
* The [`protocol`](../Getting-Started/Configuration-Guide.md#protocol) to use.
Must be defined.
* `data.attributes.parameters.address` OR `data.attributes.parameters.socket`
* The [`address`](../Getting-Started/Configuration-Guide.md#address) or
[`socket`](../Getting-Started/Configuration-Guide.md#socket) to use. Only
@ -250,7 +254,6 @@ least the following fields.
* The [`port`](../Getting-Started/Configuration-Guide.md#port) to use. Needs
to be defined if the `address` field is defined.
The following is the minimal required JSON object for defining a new server.
```javascript