The REST API supports the following HTTP methods to manipulate resources:
Refer to this basic set of methods as CRUD. Each method works in the same manner on all CA SDM resources. You require an HTTP client library, available with most programming languages. Use the HTML client library to complete the following tasks:
After you update Majic object definitions and recycle CA SDM, the product automatically regenerates and redeploys the corresponding Plain Old Java Objects (POJOs) into the REST Tomcat webapps directory.
Note: The pdm_rest_util command line utility lets you manually generate, compile, and deploy Java code that REST web services require.
Important! Requests for attributes that do not respond indicate a null attribute value. Modify your client code accordingly because REST does not display null attribute values in responses.
REST Web Services provide a scalable configuration and better flexibility to our users by letting you connect to a dedicated domsrvr on the local server. By default, CA SDM r12.9 provides the NX_REST_WEBSERVICE_DOMSRVR variable to domsrvr. You can edit NX.env to change this setting.
CA SDM disables the REST sample mobile user interface and exposes all Majic factories through REST Web Services by default.
Important! The REST API does not support Majic attributes of type DOUBLE.
The following table shows how the REST API uses HTTP methods on resources.
|
Resource |
CREATE |
READ |
UPDATE |
DELETE |
|---|---|---|---|---|
|
Collection URL For example: http://mywebsite.com/resources/ |
Creates an entry in the collection. Assigns a new entry URL automatically and returns it by the operation. |
Lists the URLs and other details of the collection members. |
N/A |
N/A |
|
Element URL For example: http://mywebsite.com/resources/item1 |
N/A |
Retrieves a representation of the addressed member of the collection. |
Updates the addressed member of the collection, and when the member does not exist, creates it. |
Deletes the addressed member of the collection. |
|
Copyright © 2013 CA.
All rights reserved.
|
|