Amend response details for custom resource classes PUT

The code in I99e7bcfe27938e5e4d50ac3005690ac1255d4c5e actually
returns the updated resource class from the PUT operation and
the response code is 200, not 204 with an empty body.

Change-Id: Ieb7a7f72f9c43886028fdaeac7a790baaea74716
This commit is contained in:
Matt Riedemann
2016-12-02 14:37:06 -05:00
parent 4ca1c02312
commit 510cb71553

View File

@@ -214,8 +214,22 @@ The body of the request must match the following JSONSchema document::
"additionalProperties": False
}
The response body is empty and the response code will be a `204 No Content`
upon successful name change.
The response body will contain the resource class details and the response code
will be a `200 OK` upon successful name change.
Example::
200 OK
Content-Type: application/json
{
"name": "CUSTOM_BAREMETAL_SILVER",
"links": [
{
"rel": "self",
"href": "/resource_classes/CUSTOM_BAREMETAL_SILVER"
}
]
}
* A `404 Not Found` response code will be returned if no such resource class
matching the name is found.