...
Status |
---|
subtle | true |
---|
title | If-None-Match |
---|
|
Status |
---|
| |
---|
subtle | true |
---|
title | If-Modified-Since |
---|
|
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 |
---|
subtle | true |
---|
colour | Green |
---|
title | 200 |
---|
|
OK Status |
---|
| |
---|
subtle | true |
---|
colour | Green |
---|
title | 206 |
---|
|
Partial Content
Status |
---|
subtle | true |
---|
colour | Yellow |
---|
title | 304 |
---|
|
Not Modified Status |
---|
subtle | true |
---|
colour | Red |
---|
title | 404 |
---|
|
Not Found Status |
---|
| |
---|
subtle | true |
---|
colour | Red |
---|
title | 416 |
---|
|
Requested Range Not Satisfiable
...
Upload new binary content
...
Status |
---|
subtle | true |
---|
colour | Green |
---|
title | 201 |
---|
|
Created Status |
---|
| |
---|
subtle | true |
---|
colour | Red |
---|
title | 409 |
---|
|
Checksum Mismatch
...
Replace existing binary content
Request Headers:
(See above) Status |
---|
| |
---|
subtle | true |
---|
title | If-UNModified-Since |
---|
|
Query Parameters:
...
Status |
---|
| |
---|
subtle | true |
---|
colour | Green |
---|
title | 204 |
---|
|
No Content Status |
---|
| |
---|
subtle | true |
---|
colour | Red |
---|
title | 409 |
---|
|
Checksum Mismatch Status |
---|
| |
---|
subtle | true |
---|
colour | Red |
---|
title | 412 |
---|
|
Precondition Failed
Batch Operations
Request URI: /path/to/some/resource/fcr:datastreams
...