Versions Compared

Key

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

...

Status
subtletrue
titleIF-Match
Status
subtletrue
titleIf-UNModified-Since

Query Parameters:

Status
subtletrue
titlechecksum
 Checksum of the binary content (in the form urn:sha1:<sha-hash>). If the checksum doesn't match, an error will be returned.


 

Example:

Code Block
curl -X POST -H "Content-Type: text/turtle" "http://localhost:8080/rest/node/to/update" -d "@new-triples.rdf"
 
Request Body:
 
<> dc:title "some-resource-title" .
 

Response:

Code Block
Status: 204 No Content

 

Status:

Status
subtletrue
colourGreen
title204
 No Content

Status
subtletrue
colourRed
title412
 Precondition Failed

...

Query Parameters:

Status
subtletrue
titlenumPIDScount
Number of identifiers to create (Optional; defaults to 1)

...

Code Block
curl -X POST "http://localhost:8080/rest/fcr:identifier?numPidscount=3"

Response:

Code Block
Status: 200 OK
 
Headers:
Content-Type: text/turtle
 
Body:
 
<http://localhost:8080/rest/fcr:identifier> <http://fedora.info/definitions/v4/repository#hasMember> <http://localhost:8080/rest/newly-minted-identifier><http://localhost:8080/rest/fcr:identifier> <http://fedora.info/definitions/v4/repository#hasMember> <http://localhost:8080/rest/another-newly-minted-identifier><http://localhost:8080/rest/fcr:identifier> <http://fedora.info/definitions/v4/repository#hasMember> <http://localhost:8080/rest/yet-another-minted-identifier>

...

Code Block
Status: 200 OK
 
Headers:
Content-Type: text/turtle
 
Body:
 
<http://localhost:8080/rest/path/to/some/resource/fcr:identifier> <http://fedora.info/definitions/v4/repository#hasMember> <http://localhost:8080/rest/path/to/some/resource/newly-minted-identifier>
<http://localhost:8080/rest


Status:

Status
subtletrue
colourGreen
title200
  OK

Transactions

Request URI: /fcr:tx; /path/to/

...

transaction/fcr:

...

tx

Methods: POST

 

Status
titleGET

Status:

...

Transactions

Request URI: /fcr:tx; /path/to/transaction/fcr:tx

Methods: POST

 

Status
titleGET
 Get the current status of a transaction (TODO?)

...

Request URI: /fcr:workspaces/(workspace name)

Methods: POST, DELETE

Status
colourBlue
titlePOST
 Create a new workspace

...

Status
subtletrue
colourGreen
title201
 Created

 

...

 

Status
colourRed
titleDELETE
 Delete a new workspace

Example:

Code Block
curl -X DELETE "http://localhost:8080/rest/fcr:workspaces/abc"  # delete a new workspace called "abc"

Response:

Code Block
Status: 204 No Content

 

Status:

Status
subtletrue
colourGreen
title204
 No Content

Content Modeling

Request URI: /fcr:nodetypes

...