jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "frm/HttpOperations" by frm
Date Tue, 03 Feb 2015 15:14:22 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "frm/HttpOperations" page has been changed by frm:
https://wiki.apache.org/jackrabbit/frm/HttpOperations?action=diff&rev1=3&rev2=4

  == Read a revision ==
  
  {{{
- POST /revisions
+ GET /revisions/last
  }}}
  
- In case of success, the server returns a `201` response with a content type of `application/json`.
The body of the respnose is a JSON object, where the revision is the value of the `revision`
property.
+ In case of success, the server returns a `200` response with a content type of `application/json`.
The body of the respnose is a JSON object, where the revision is the value of the `revision`
property.
  
  {{{
  {
@@ -51, +51 @@

  GET /revisions/:revision/tree/:path
  }}}
  
- The `:revision` part of the URL is the revision that represents the state of the repository
used when reading. A value for this parameter is obtained by using a dedicated method of this
API.
+ {{{
+ GET /revisions/last/tree/:path
+ }}}
+ 
+ The `:revision` part of the URL is the revision that represents the state of the repository
used when reading. A value for this parameter is obtained by using a dedicated method of this
API. If the second kind of URL is used, where `:revision` assumes the value of `last`, the
read operation is performed on the latest state of the repository known to the server.
  
  The `:path` part of the URL is the path of the node in the repository that will be used
as a root for the read operation.
  
  Request parameters:
- 
-  * `revision` - the revision that represents the state of the repository used when reading.
A value for this parameter is obtained by using a dedicated method of this API. This parameter
is mandatory and is a single-value parameter.
  
   * `depth` - the maximum depth of the tree returned by the response. This parameter is optional
and is a single-value parameter.
  
@@ -111, +113 @@

  PATCH /revisions/:revision/tree
  }}}
  
- The `:revision` part of the URL specifies the revision the patch should be applied to. A
value for this parameter is obtained by using a dedicated method of this API.
+ {{{
+ PATCH /revisions/last/tree
+ }}}
+ 
+ The `:revision` part of the URL specifies the revision the patch should be applied to. A
value for this parameter is obtained by using a dedicated method of this API. If the second
kind of URL is used, where `:revision` assumes the value of `last`, the patch operation is
performed on the latest state of the repository known to the server.
  
  The request must have a content type of `application/json` and its body must contain the
set of operations to apply to the content represented according to the following rules.
  
@@ -172, +178 @@

  == Read a binary object ==
  
  {{{
- GET /revisions/:revison/binaries/:binaryId
+ GET /binaries/:binaryId
  }}}
  
  If the binary object represented by `:binaryId` is found, the server returns a 200 response
with a content type of `application/octet-stream`. The response body contains the whole content
of the binary object.
@@ -187, +193 @@

  
   * if two or more ranges are requested by the client, the server returns a 206 response
with a content type of `multipart/byteranges`. The response contains a multipart body, where
each part represents one range as requested by the client. Every part has a content type of
`application/octet-stream` and a `Content-Range` specifying which portion of the binary object
the range represents.
  
+ More detailed information about range requests can be found in RFC7233. 
+ 
  == Write a binary object ==
  
  {{{
- POST /revisions/:revision/binaries
+ POST /binaries
  }}}
  
  The request should have a content type of `application/octet-stream`. The payload of the
request will be saved by the repository in a binary object.

Mime
View raw message