|
Repository Update Service APIService version ddsupdatews 1.1 Table of ContentsOverviewThe Repository Update Service (DDSUpdateWS) is a REST API for adding metadata and content to a DDS repository, allowing authorized clients to create, update and delete collections and items in the repository. Note that this service is disabled for the DLESE library. Definitions and conceptsDDSUpdateWS is a Representational State Transfer (REST) style Web service API. Service requests are expressed as HTTP argument/value pairs. These requests must be in either GET or POST format. Responses are returned in XML format by default, which varies in structure and content depending on the request as shown below in the examples section of this document. Responses can also be returned as JSON (JavaScript Object Notation) as an alternate output format to XML.
HTTP request formatThe format of the request consists of the base URL followed by the ? character followed by one or more argument=value pairs, which are separated by the & character. Each request must contain one verb=request pair, where verb is the literal string 'verb' and request is one of the DDSUpdateWS request strings defined below. All arguments must be encoded using the syntax rules for URIs. This is the same encoding scheme that is described by the OAI-PMH. The HTTP request format has the following structure: http://www.dlese.org/dds/services/ddsupdatews1-1 Requests and responsesThis section describes the available requests, or verbs, and the XML responses returned by the service. Responses can also be output in JSON form. PutCollectionSample request
Examples See example above. Response The service responds with data about the result of the request operation. In addition, see result codes. Errors and exceptions If an error occurs, an error response is returned. See error and exception conditions. DeleteCollectionSample request
See example above. Response The service responds with data about the result of the request operation. In addition, see result codes. Errors and exceptions If an error occurs, an error response is returned. See error and exception conditions. PutRecordSample request
See example above. Response The service responds with data about the result of the request operation. In addition, see result codes. Errors and exceptions If an error occurs, an error response is returned. See error and exception conditions. DeleteRecordSample request
See example above. Response The service responds with data about the result of the request operation. In addition, see result codes. Errors and exceptions If an error occurs, an error response is returned. See error and exception conditions.
Result CodesWhen the service responds to a request it includes a
Error and Exception ConditionsIf an error or exception occurs, the service returns an
System AdministrationThis section describes system installation and configuration options for the DDS repository system, meant for system administrators. It assumes familiarity with Servlets, Tomcat, Web servers and other server components. Authorization and ConfigurationA client is authorized by it's IP. Valid IPs are specified in the Collection Manager. In addition, the DDS repository system must have the Service enabled in order for it to be used (it is disabled by default), which is configured using the context parameter The Service does not natively require user names and passwords or encrypt data. When enabling the Service, it is recommended to configure the server to run over SSL with BASIC Authorization or configure for use by local clients only over a local http port that is firewalled and cannot be accessed from the Internet or outside networks. The DDS repository system provides a flexible architecture for configuring the search fields that are created for the XML items inserted into the repository. See Configuring Search Fields for XML Frameworks for information.
Last revised: $Date: 2010/03/09 03:45:49 $ |