Versions Compared

Key

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

...

Methods: GET, POST, PUT, PATCH, HEAD, OPTIONS, DELETE, MOVE, COPY

  

...

Anchor
get
get

Status
titleGET
  Retrieve all triples for the resource

...

Status
subtletrue
colourRed
title404
 Not Found

 

...

Anchor
post
post

Status
colourBlue
titlePOST
 Create a new automatically-named child node or datastream at the given path

...

Status
subtletrue
colourRed
title409
Conflict (resource is locked or checksum mismatch)

 

...

Anchor
put
 
put

Status
colourYellow
titlePUT
  Create a resource with a specified path, or replace the triples associated with a resource with the triples provided in the request body.

...

Status
subtletrue
colourRed
title412
 Precondition Failed

 

...

Anchor
head
 
head

Status
titleHEAD
 Retrieve the node headers

...

Status
subtletrue
colourRed
title404
 Not Found

 

...

Anchor
options
options

Status
colourYellow
titleOPTIONS
 Outputs information about the supported HTTP methods, etc.

Example:

Code Block
curl -i -X OPTIONS "http://localhost:8080/rest/node/to/options"

Response:

Code Block
Status: 200 OK
Accept-Patch: application/sparql-update
Allow: MOVE,COPY,DELETE,POST,HEAD,GET,PUT,PATCH,OPTIONS
Accept-Post: text/turtle,text/rdf+n3,application/n3,text/n3,application/rdf+xml,application/n-triples,multipart/form-data,application/sparql-update

 

Status:

Status
subtletrue
colourGreen
title200
 OK

 


Anchor
delete
 
delete

Status
colourRed
titleDELETE
Delete a resource

...

Status
subtletrue
colourRed
title404
Not Found

 

...

Anchor
move
 
move

Status
subtletrue
colourRed
titleMOVE
 Move a resource (and its subtree) to a new location

...

Status
subtletrue
colourRed
title502
 Destination URI isn't a valid resource path

 

...

Anchor
copy
 
copy

Status
subtletrue
colourBlue
titleCOPY
 Copy a resource (and its subtree) to a new location

...