skip to main content
OData Method Reference
 

Try DataDirect Cloud Now

OData Method Reference

The DataDirect Cloud OData service interface supports GET, POST, POST/MERGE and POST/DELETE HTTP methods. Each operation acts on the resource specified in the URL.
The POST request to create or update an entity should include a Content-Type header specifying the format of the request payload. The DataDirect Cloud OData API recognizes the following content types:
*application/atom+xml
*application/atom+xml;charset=UTF-8
*application/json
*application/json;charset=UTF-8
If the Content-Type header is not supplied, DataDirect Cloud interprets the body as the Atom Pub format encoded using the character set.ISO-8859-1 character set.

Supported OData API Operations

The following table shows the operations that can be performed and their associated URLs. Refer to the specified section for detailed descriptions for these operations. Query the data source name to get a list of the valid entities.
Watch a video to see how to use the Progress DataDirect Cloud OData API to perform CRUD operations.
Purpose
Request
URL
GET
https://service.datadirectcloud.com/api/odata/<data-source-name><entity-plural-name>
POST
https://service.datadirectcloud.com/api/odata/<data-source-name><entity-plural-name>
POST
X-HTTP-Method:MERGE
https://service.datadirectcloud.com/api/odata/<data-source-name><entity-plural-name>('primary-key')
DELETE
Or
POST
X-HTTP-Method:DELETE
https://service.datadirectcloud.com/api/odata/<data-source-name><entity-plural-name>('primary-key')
* HTTP GET
* HTTP POST (create)
* HTTP POST and MERGE (update)
* HTTP DELETE or POST and DELETE