...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Content Modeling
Request URI: /fcr:nodetypes
...
Code Block |
---|
Status: 200 OK
Headers:
Content-Type: text/turtle
Body:
<x> <y> <z> |
Status:
Status | ||||||
---|---|---|---|---|---|---|
|
...
<http://fedora.info/definitions/v4/rest-api#object>
a <http://www.w3.org/2000/01/rdf-schema#Class> ;
<http://www.w3.org/2000/01/rdf-schema#label>
"fedora:object" ;
<http://www.w3.org/2000/01/rdf-schema#subClassOf>
<http://fedora.info/definitions/v4/rest-api#resource> .
<http://fedora.info/definitions/v4/rest-api#resource>
a <http://www.w3.org/2000/01/rdf-schema#Class> ;
<http://www.w3.org/2000/01/rdf-schema#label>
"fedora:resource" ;
<http://www.w3.org/2000/01/rdf-schema#subClassOf>
<http://fedora.info/definitions/v4/rest-api#relations> , <http://www.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0lockable> , <http://www.jcp.org/jcr/mix/1.0versionable> .
[...]
|
Status:
Status | ||||||
---|---|---|---|---|---|---|
|
...
Update the list of node types Status colour Blue title POST
Warning |
---|
The request body format for updating nodetypes is in flux. For now, and in the immediate future, it uses JCR's CND syntax , but we'd prefer a provider-independent format. |
Example:
Code Block |
---|
curl -X POST -H "Content-Type: text/cnd" -d "@cnd.txt" "http://localhost:8080/rest/fcr:nodetypes"
Body:
[fedora:custom_node_type] > fedora:resource mixin
- fedora:thumbnail (string)
|
Response:
Code Block |
---|
Status: 204 No Content |
Status:
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Namespaces
Request URI: /fcr:namespaces
Methods: GET, POST
get a list of registered namespaces and default prefixes Status title GET
Request Headers:
Status | ||||
---|---|---|---|---|
|
Example:
Code Block |
---|
curl "http://localhost:8080/rest/fcr:namespaces" |
Response:
Code Block |
---|
Status: 200 OK
Headers:
Content-Type: text/turtle
Body:
@prefix dc: <http://purl.org/dc/terms/> .
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> .
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> .
dc: a <http://purl.org/vocommons/voaf#Vocabulary> ;
<http://purl.org/vocab/vann/preferredNamespacePrefix>
"dc" ;
<http://purl.org/vocab/vann/preferredNamespaceUri>
"http://purl.org/dc/terms/" .
fcrepo: a <http://purl.org/vocommons/voaf#Vocabulary> ;
<http://purl.org/vocab/vann/preferredNamespacePrefix>
"fcrepo" ;
<http://purl.org/vocab/vann/preferredNamespaceUri>
"http://www.jcp.org/jcr/1.0" .
nt: a <http://purl.org/vocommons/voaf#Vocabulary> ;
<http://purl.org/vocab/vann/preferredNamespacePrefix>
"nt" ;
<http://purl.org/vocab/vann/preferredNamespaceUri>
"http://www.jcp.org/jcr/nt/1.0" .
[....] |
Warning |
---|
The request body format for updating nodetypes is in flux. For now, and in the immediate future, it uses JCR's CND syntax , but we'd prefer a provider-independent format. |
Example:
Code Block |
---|
curl -X POST -H "Content-Type: text/cnd" -d "@cnd.txt" "http://localhost:8080/rest/fcr:nodetypes"
Body:
[fedora:custom-node-type] > [fedora:resource]
- fedora:thumbnail (string)
|
Response:
Code Block |
---|
Status: 204 No Content |
Status:
...
Namespaces
Request URI: /fcr:namespaces
Methods: GET, POST
get a list of registered namespaces and default prefixes Status title GET
Request Headers:
Status | ||||
---|---|---|---|---|
|
Example:
Code Block |
---|
curl "http://localhost:8080/rest/fcr:namespaces" |
Response:
Code Block |
---|
Status: 200 OK
Headers:
Content-Type: text/turtle
Body:
<x> <y> <z> |
Status:
Status | ||||||
---|---|---|---|---|---|---|
|
...
add or modify namespaces Status colour Blue title POST
...