getAdminData
get
/ccadmin/v1/dataAdmin/{dataKey}
Retrieve a set of data from another source, e.g. external REST service. DataKey determines what source to use, e.g. 'assetId' for CECS Content Items.
Request
Supported Media Types
- application/json
Path Parameters
-
dataKey: string
The data key of the data to be returned.
Response
Supported Media Types
- application/json
200 Response
An object is returned that represents the data from the external source. Example is for CECS Content Items.
Root Schema : generateDataAdmin_response
Type:
Show Source
object
-
items(optional):
string
list of items retrieved
Example Response (application/json)
{
"offset":0,
"hasMore":false,
"limit":100,
"count":100,
"links":[
{
"templated":false,
"method":"GET",
"profile":"",
"rel":"self",
"mediaType":"",
"href":"/content/published/api/v1/items?access-token=bee9fc829bef49206c355b8bec37fdaf"
},
{
"templated":false,
"method":"GET",
"profile":"",
"rel":"canonical",
"mediaType":"",
"href":"/content/published/api/v1/items?access-token=bee9fc829bef49206c355b8bec37fdaf"
},
{
"templated":false,
"method":"GET",
"profile":"",
"rel":"describedby",
"mediaType":"application/schema+json",
"href":"/content/published/api/v1/metadata-catalog/items"
},
{
"templated":false,
"method":"",
"profile":"",
"rel":"first",
"mediaType":"",
"href":"/content/published/api/v1/items?access-token=bee9fc829bef49206c355b8bec37fdaf&offset=0"
},
{
"templated":false,
"method":"",
"profile":"",
"rel":"last",
"mediaType":"",
"href":"/content/published/api/v1/items?access-token=bee9fc829bef49206c355b8bec37fdaf&offset=0"
},
{
"rel":"self",
"href":"/ccadminui/v1/dataAdmin/assetId"
},
{
"rel":"next",
"href":"/ccadminui/v1/dataAdmin/assetId?offset=100&limit=100"
}
],
"items":[
{
"link":{
"templated":false,
"method":"GET",
"profile":"",
"rel":"Reference",
"mediaType":"",
"href":"/content/published/api/v1/items/Blog_core_efc3219b-58e6-46bd-9689-0b966cac1a69"
},
"name":"Our Pastries",
"description":"Get the perfect pastries to go with your prefect coffee",
"id":"Blog_core_efc3219b-58e6-46bd-9689-0b966cac1a69",
"type":"Blog"
},
{
"link":{
"templated":false,
"method":"GET",
"profile":"",
"rel":"Reference",
"mediaType":"",
"href":"/content/published/api/v1/items/PressRelease_core_df2cd298-0148-48f7-91f8-41198531258f"
},
"name":"Caf?? Supremo Honors Brazilian Coffee Heritage",
"description":"Caf?? Supremo Honors Brazilian Coffee Heritage with Entry into Brazilia Retail Market and Expanded Support for Farmers",
"id":"PressRelease_core_df2cd298-0148-48f7-91f8-41198531258f",
"type":"PressRelease"
}
]
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code