MXS-1220: Add deletion of listeners

The listeners can now be deleted via the REST API. Documented the added
endpoint in the REST API documentation.
This commit is contained in:
Markus Mäkelä
2017-07-03 20:18:45 +03:00
parent 7e40c93cc4
commit 35745ee925
5 changed files with 85 additions and 0 deletions

View File

@ -302,6 +302,35 @@ object.
|ssl_version | The SSL version to use [TLSv1.2|TLSv1.1|TLSv1.0] |
|ssl_cert_verify_depth | Certificate verification depth |
### Destroy a listener
```
DELETE /v1/services/:service/listeners/:name
```
In the URI , the _:name_ must map to a listener and the _:service_ must map to a
service. Both names must have all whitespace replaced with hyphens.
#### Response
OK:
```
Status: 204 No Content
```
Listener not found:
```
Status: 404 Not Found
```
Listener cannot be deleted:
```
Status: 403 Forbidden
```
### Update a service
The _:name_ in the URI must map to a service name and the request body must be a