Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status
subtletrue
titleIf-None-Match
Status
subtletrue
titleIf-Modified-Since
Status
subtletrue
titleRange

Example (1):

Code Block
curl "http://localhost:8080/rest/path/to/some/resource/fcr:content"

Response:

Code Block
Status: 200 OK
 
Headers:
ETag: "urn:sha1:cb1a576f22e8e3e110611b616e3e2f5ce9bdb941"
Content-Type: image/jpeg
Content-Length: 123456
Cache-Control: no-transform, must-revalidate, max-age=0
Last-Modified-At: 2013-01-01T01:23:45Z
Link: http://localhost:8080/rest/path/to/some/resource;rel="meta"
Accept-Ranges: bytes
 
Body:
<binary content>

Example (2):

Code Block
curl -H "Range: bytes=1-5"
Code Block
curl "http://localhost:8080/rest/path/to/some/resource/fcr:content"

Response:

Code Block
Status: 200206 Partial Content
 
Headers:
ETag: "686897696a7c876b7eurn:sha1:cb1a576f22e8e3e110611b616e3e2f5ce9bdb941"
Content-Type: image/jpeg
Content-Range: bytes 1-5/9106
Content-Length: 1234565
Cache-Control: 
Last-Modified-At: 2013-01-01T01:23:45Z
Link: http://localhost:8080/rest/path/to/some/resource;rel="meta"
Accept-Ranges: bytes
 
Body:
<binary content>

...

Status
subtletrue
colourGreen
title200
  OK

Status
subtletrue
colourGreen
title206
 Partial Content

Status
subtletrue
colourYellow
title304
 Not Modified

Status
subtletrue
colourRed
title404
 Not Found

Status
subtletrue
colourRed
title416
 Requested Range Not Satisfiable

 

...

 

Status
colourBlue
titlePOST
 Upload new binary content

...

Status
subtletrue
colourGreen
title201
  Created

Status
subtletrue
colourRed
title409
 Checksum Mismatch

 

...

 

Status
colourYellow
titlePUT
 Replace existing binary content

Request Headers:

Status
subtletrue
titleSLug
 (See above)
IF-Match
Status
subtletrue
titleIf-UNModified-Since

Query Parameters:

Status
subtletrue
titlechecksum

...

Status
subtletrue
colourGreen
title204
 No Content

Status
subtletrue
colourRed
title409
 Checksum Mismatch

Status
subtletrue
colourRed
title412
 Precondition Failed

 

Batch Operations

Request URI: /path/to/some/resource/fcr:datastreams

...