IBM Content Navigator, Version 2.0.3     Supports: 

GET method

The GET request gets the list of object types for the external data service.

URI syntax

For the response, you create the object types resource, for example, an ObjectTypes.json file, which contains the class names, item type names, or workflow information for whose properties are to be updated with the values that are obtained from the external data source.

For IBM® FileNet® P8 workflow information, multi-part String values are used instead of a class or item type name.

/types?repositoryId=Repository_ID
The repository ID is the symbolic name of the data source that contains the class names, item type names, or workflow information that is used in the service.

Request content

GET /types?repositoryId=Repository_ID

Response content

The response to the request must include a JSON payload that contains the following parameters:
{
 "types": 
  [
   {
    "symbolicName": "TypeOne",
   },
   //More object types
	...
  ]
} 

Response codes

Table 1. Response codes for the GET method
Code Description
200 OK The method completed successfully. The response that is returned by the GET method includes the JSON payload that contains the list of object types.
400 Bad Request One of the required parameters was missing or a parameter value was invalid.
404 Not Found Class names or item type names were not found in the repositoryId data source. This error indicates that the external data service does not manage any property values for the class because the object types request is not implemented by this external data service. The EDS REST protocol does not return an error to IBM Content Navigator. IBM Content Navigator ignores the external data service and does not call the service for the particular object type for any class.
500 Internal Server Error A server error occurred. For information about the error, see the userMessage element in the JSON response.