Fix REST API servers documentation
Always use plural form of the objects. PATCH example used PUT.
This commit is contained in:
@ -213,7 +213,7 @@ must be one of the methods that the requested resource supports.
|
|||||||
#### Allow
|
#### Allow
|
||||||
|
|
||||||
All resources return the Allow header with the supported HTTP methods. For
|
All resources return the Allow header with the supported HTTP methods. For
|
||||||
example the resource `/service` will always return the `Accept: GET, PATCH, PUT`
|
example the resource `/services` will always return the `Accept: GET, PATCH, PUT`
|
||||||
header.
|
header.
|
||||||
|
|
||||||
#### Accept-Patch
|
#### Accept-Patch
|
||||||
@ -317,7 +317,7 @@ representation of the error.
|
|||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
"error": {
|
"error": {
|
||||||
"detail" : "The new `/server/` resource is missing the `port` parameter"
|
"detail" : "The new `/servers/` resource is missing the `port` parameter"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@ -367,7 +367,7 @@ _server1_ from the service _RW-Split-Router_.
|
|||||||
Removing a service from a server is analogous to removing the server from the
|
Removing a service from a server is analogous to removing the server from the
|
||||||
service. Both unlink the two objects from each other.
|
service. Both unlink the two objects from each other.
|
||||||
|
|
||||||
Response to `GET /v1/server/server1`:
|
Response to `GET /v1/servers/server1`:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
@ -433,7 +433,7 @@ Response to `GET /v1/server/server1`:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Request for `PUT /v1/server/server1`:
|
Request for `PATCH /v1/servers/server1`:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user