|
Repository Update APIService version ddsupdatews 1.1 Table of ContentsOverviewThe Repository Update API is a RESTful API for creating, updating, and deleting records and collections in a DDS repository. Definitions and conceptsThe Repository Update API uses a REST-RPC hybrid approach to accept requests expressed as HTTP argument/value pairs. Requests may be made using the HTTP GET or POST method, which behave identically and vary only in the length of the request allowed (GET has a limited request length whereas POST is unlimited). Responses are returned in XML or JSON format (XML by default), which varies in structure and content depending on the request as shown below in the examples section of this document.
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 Repository Update API 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://nsdl.org/nsdl_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. PutCollectionSummary and usage Sample 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. DeleteCollectionSummary and usage Sample 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. PutRecordSummary and usage Sample 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. DeleteRecordSummary and usage Sample 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
Authentication, authorization, and securityThe Repository Update API does not include a native authentication/authorization model, however it is possible to ensure reasonable security by configuring a DDS repository using the techniques outlined below. Appropriate steps should be taken to secure the repository before enabling the API. This section is meant for administrators who are establishing a repository and assumes prior knowledge of network security, Servlets, Tomcat, the Apache web server, and other components in a typical Tomcat webapp installation. Configuring for security
Enabling the Repository Update APIThe Repository Update API must be enabled before it can be used for a given DDS installation. To enable the service, use the context parameter
Configuring features for searchThe DDS repository system provides a flexible architecture for configuring the search fields, facets, and relationships that are created for the XML records inserted into the repository. See Configuring Search Fields, Facets, and Relationships for XML Frameworks for information.
Last revised: $Date: 2012/09/28 19:48:40 $ |