Retrieve Object Details Using Object ID
The sample use case is to use the object ID resource://1262125 to retrieve the details of the object.
You can use the REST API to retrieve the information in one of the following ways:
- Using Java code and the Bundled Java Client
public void getObjectDetails() {
try {
ObjectResponse response = this.api.catalogDataObjectsIdGet("resource://1262125");
// Do something with the returned object
response.getFacts();
} catch (ApiException e) {}
}} catch (ApiException e) {}
}
- Using Curl
curl -X GET --header "Accept: application/json" --header "Content-Type: application/json" "http://localhost:13000/2/catalog/data/objects/resource~3a~~2f~~2f~1262125"
ObjectResponse response = this.api.catalogDataObjectsIdGet("resource://1262125");