How do I get attributes for an object via Connect Rest API?
Environment:
connectREST api
Resolution:
Connect Rest API is implemented using JSON-hyper-schema standards. This means a schema exists for all input and output data/format.
To access the JSON schema for a particular object perform a GET request to the metadata-catalog for the object in question. For example, http://<host>/services/rest/connect/latest/metadata-catalog/<object>
In the header of the request, use "Accept: application/schema+json".
The CURL call is setup as follows to return the metadata information.
curl -XGET -H 'Accept: application/schema+json' -H 'OSvC-CREST-Application-Context: default' -H 'osvc-crest-next-request-after: 0' -H 'Authorization: Basic {basic authentication}' http://<host>/services/rest/connect/latest/metadata-catalog/contacts