...
Create a new node at the given path Status colour Blue title POST
Create a new child node at the given path, and recursively create any missing parent elements.
Query Parameters:
Status | ||||||
---|---|---|---|---|---|---|
|
...
Code Block |
---|
curl -X POST "http://localhost:8080/rest/some/path/to/a/new/resource" |
Response:
Code Block |
---|
Status: 201 Created
Headers:
Location: http://localhost:8080/rest/some/path/to/a/new/resource |
Example (2):
Code Block |
---|
curl -X POST "http://localhost:8080/rest/some/path/to/a/new/resource?mixin=fedora:datastream" # Create a fedora:datastream |
...
Status | ||||||
---|---|---|---|---|---|---|
|
Example (1):
Code Block |
---|
curl -X POST "http://localhost:8080/rest/this/node/already/exists" |
Response:
Code Block |
---|
Status: 201 Created
Headers:
Location: http://localhost:8080/rest/this/node/already/exists/some/generated/identifier |
Example (2):
Code Block |
---|
curl -X POST -H "Slug: new-node-name" "http://localhost:8080/rest/this/node/already/exists" |
Response:
Code Block |
---|
Status: 201 Created Headers: Location: http://localhost:8080/rest/this/node/already/exists/new/-node/-name" |
Status:
Status | ||||||
---|---|---|---|---|---|---|
|
...