提供全部可用的资源

提供全部可显现的资源 (例如. 这个对象的所有属性) 不用考虑全部可能响应的状态码,总是在响应码为200或是201时返回所有可用资源, 包含 PUT/PATCHDELETE
请求, 例如:

  1. $ curl -X DELETE \
  2. https://service.com/apps/1f9b/domains/0fd4
  3. HTTP/1.1 200 OK
  4. Content-Type: application/json;charset=utf-8
  5. ...
  6. {
  7. "created_at": "2012-01-01T12:00:00Z",
  8. "hostname": "subdomain.example.com",
  9. "id": "01234567-89ab-cdef-0123-456789abcdef",
  10. "updated_at": "2012-01-01T12:00:00Z"
  11. }

当请求状态码为202时,不返回所有可用资源,
e.g.:

  1. $ curl -X DELETE \
  2. https://service.com/apps/1f9b/dynos/05bd
  3. HTTP/1.1 202 Accepted
  4. Content-Type: application/json;charset=utf-8
  5. ...
  6. {}