Making REST Requests

Topics

This section provides information on making REST requests with the Amazon SimpleDB web service.

Amazon SimpleDB REST calls are made using HTTP GET requests. The Action query parameter provides the method called and the URI specifies the target of the call. Additional call parameters are specified as HTTP query parameters. The response is an XML document that conforms to a schema.

[Note]Note

If the length of the query string that you are constructing exceeds the maximum length of the HTTP GET URL, use HTTP POST and submit the query string parameters in the body of the message.

In a REST request, the components are specified as separate parameters that are prefixed with an ampersand (&). The following is an example of the DomainName parameter. &DomainName=MyDomain

Parameters that have components start with the main parameter name (such as Attribute), a dot, a sequence number, a dot, and the component name (such as Name). For example: &Attribute.1.Name=Color.

In addition to the parameters found in request data structures, REST requests have parameters to indicate the name of the service and the version of the API. For more information about these parameters and their values, see API Conventions and API Versioning.

This section provides a sample REST request and response.