Versions Compared

Key

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

...

Panel
bgColorwhite
borderStylenone

URL Syntax

/objects/{pid}/datastreams/{dsID}/content ? [asOfDateTime] [download]

HTTP Method

GET

HTTP Response

200

Info
titleHTTP 1.1 Conditional GET

The following HTTP 1.1 conditional GET request headers are supported for datastream dissemination requests:

  • If-None-Match (The ETag for managed and inline datastreams will be the datastream checksum)
    304 Not Modified is returned if the request header value matches the ETag. 
  • If-Modified-Since
    304 Not Modified is returned if the datastream has not been modified since the time specified in the request header value
  • Range
    206 Partial content is returned if the range request has been satisfied; otherwise, a 416 Requested Range Not Satisfiable status will be returned.
     

Conditional GET headers will be passed along to backend servers hosting external and redirect datastreams; responses from those servers will be sent back to the Fedora client.  

Parameters

Name

Description

Default

Options

{pid}

persistent identifier of the digital object

 

 

{dsID}

datastream identifier

 

 

asOfDateTime

indicates that the result should be relative to the digital object as it existed at the given date and time

 

yyyy-MM-dd or yyyy-MM-ddTHH:mm:ssZ

download

If true,  a content-disposition header value "attachment" will be included in the response, prompting the user to save the datastream as a file.  A content-disposition header value "inline" will be used otherwise.  The filename used in the header is generated by examining in order: RELS-INT for the relationship fedora-model:downloadFilename, the datastream label, and the datastream ID.  The file extension (apart from where the filename is specified in RELS-INT) is determined from the MIMETYPE.  The order in which these filename sources are searched, and whether or not to generate an extension from the MIMETYPE, is configured in fedora.fcfg.  The file used to map between MIMETYPEs and extensions is mime-to-extensions.xml located in the server config directory.

 

 

Examples

/objects/demo:29/datastreams/DC/content

/objects/demo:29/datastreams/DC/content?asOfDateTime=2008-01-01

...

Panel
bgColorwhite
borderStylenone

URL Syntax

/objects/{pid}/export ? [format] [context] [encoding]

HTTP Method

GET

HTTP Response

200

Parameters

Name

Description

Default

Options

{pid}

persistent identifier of the digital object

 

 

format

the XML format to export

info:fedora/fedora-system:FOXML-1.1

info:fedora/fedora-system:FOXML-1.1, info:fedora/fedora-system:FOXML-1.0, info:fedora/fedora-system:METSFedoraExt-1.1, info:fedora/fedora-system:METSFedoraExt-1.0, info:fedora/fedora-system:ATOM-1.1, info:fedora/fedora-system:ATOMZip-1.1fedora/fedora-system:ATOMZip-1.1

context

the export context, which determines how datastream URLs and content are represented

public

  • public: This is context is appropriate when the exporting repository will continue to exist and will continue to support callback URLs for datastream content and disseminations. This gives a "public" export of an object in which all relative repository URLs AND internal identifiers are converted to absolute callback URLs.
  • migrate: This context is appropriate when the local repository will NOT be available after objects have been migrated to a new repository. For External (E) and Redirected (R)datastreams, any URLs that are relative to the local repository will be expressed with the Fedora local URL syntax (which consists of the string "local.fedora.server" standing in place of the actual "hostname:port"). Managed content (M) datastream identifiers are converted into default dissemination URLs.
  • archive: This context is appropriate for creating a stand alone archive of objects from a repository that will NOT be available after objects have been exported. For External (E) and Redirected (R) datastreams, any URLs that are relative to the local repository will be expressed with the Fedora local URL syntax (see "migrate"). Managed content (M) datastream identifiers are converted into default dissemination URLs, and their contents included inline via base-64 encoding.

context

the export context, which determines how datastream URLs and content are represented

public

public, migrate, archive

encoding

the preferred encoding of the exported XML

UTF-8

 

Examples

/objects/demo:29/export

/objects/demo:29/export?context=migrate

...

Panel
bgColorwhite
borderStylenone

URL Syntax

/objects/{pid} ? [logMessage]

HTTP Method

DELETE

HTTP Response

204200

Parameters

Name

Description

Default

Options

{pid}

persistent identifier of the digital object

 

 

logMessage

a message describing the activity being performed

 

 

Examples

DELETE: /objects/demo:29

...