CSS Stylesheet |
---|
h3 { background-color: #eee; padding: 0.6em; } #content .code { margin-left: 2.5em!important; background-color: #fafafa!important; } .pdl .syntaxhighlighter table td.code .container, .syntaxhighlighter .line.alt2, .syntaxhighlighter .line.alt1 { background-color: #fafafa!important; } |
Table of Contents |
---|
Overview
Introduction
The Fedora 4 HTTP API is generally a RESTful API. HTTP methods like GET, PUT, POST and DELETE are implemented on most resource paths. The API also relies heavily on content negotiation to deliver context-appropriate responses, and a HATEOAS-driven text/html response (providing a decent GUI experience on top of the repository).
...
[...] describes the use of HTTP for accessing, updating, creating and deleting resources from servers that expose their resources as Linked Data. It provides clarifications and extensions of the rules of Linked Data [LINKED-DATA]:
- Use URIs as names for things
- Use HTTP URIs so that people can look up those names
- When someone looks up a URI, provide useful information, using the standards (RDF*, SPARQL)
- Include links to other URIs, so that they can discover more things
Changes planned
Asynchronous API support
Versioning
CND node types
Changelog
Endpoints
Resources
Repository objects can be loosely divided into two classes of resources:
- Object and containers ("fedora:object"), containing RDF properties and 0 or more child nodes
- Binaries, containing any binary payload
Objects
Request URI: /path/to/some/resource
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Binary Content
Request URI: /path/to/some/resource/fcr:content
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Batch Operations
Request URI: /path/to/some/resource/fcr:datastreams
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Export / Import
Request URI: /path/to/some/resource
...
Status | ||||||
---|---|---|---|---|---|---|
|
Versioning
Request URI: /path/to/some/resource/fcr:versions
...
Tag a new version of the object with a labeled version Status colour Blue title POST
Services
Backup and Restore
Request URI: /
Methods: GET, POST
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Identifiers
Request URI: /path/to/some/resource/fcr:identifier
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Transactions
Request URI: /fcr:tx; /path/to/transaction/fcr:tx
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Fixity
Request URI: /path/to/some/resource/fcr:fixity
...
Status | ||||||
---|---|---|---|---|---|---|
|
Workspaces
Request URI: /fcr:workspaces/(workspace name)
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Content Modeling
Request URI: /fcr:nodetypes
Methods: GET, POST
Node types
get a list of registered types (as RDFS triples) Status title GET
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Namespaces
Request URI: /fcr:namespaces
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Sitemaps
Request URI: /sitemap
Methods: GET, POST
...
Status | ||||||
---|---|---|---|---|---|---|
|
Search
Full text
Request URI: /fcr:search
Methods: GET
...
Status | ||||||
---|---|---|---|---|---|---|
|
SPARQL
Request URI: /fcr:sparql
Methods: GET
...