getMetadataCatalog
get
/ccagent/v1/metadata-catalog
Get Metadata Catalog. Returns metadata catalog. Returns Swagger metadata catalog when 'Accept' request header is specified as 'application/swagger+json' else will return json hyper schema docs. The **JSON hyper schema** being served is **deprecated**. Use Swagger.
Request
There are no request parameters for this operation.
Back to TopResponse
Supported Media Types
- application/json
- application/swagger+json
200 Response
Following model is returned when operation succeeds.
Root Schema : getMetadataCatalog_response
Type:
Show Source
object
-
basePath(optional):
string
The base path on which the API is served, which is relative to the host.
-
definitions(optional):
object definitions
-
host(optional):
string
The host (name or ip) serving the API.
-
info(optional):
object info
-
paths(optional):
object paths
-
schemes(optional):
array schemes
-
swagger(optional):
string
Specifies the Swagger Specification version being used.
-
tags(optional):
array tags
Nested Schema : info
Type:
Show Source
object
-
description(optional):
string
A short description of the application.
-
title(optional):
string
The title of the application.
-
version(optional):
string
Provides the version of the application API
Example Response (application/swagger+json)
{
"basePath":"/ccagent/v1",
"paths":{
"/metadata/{id}":{
"get":{
"summary":"getMetadata",
"produces":[
"application/json"
],
"operationId":"getMetadata",
"description":"Get Metadata. Get the metadata information for an item descriptor by ID.",
"responses":{
"200":{
"description":"Following model is returned when operation succeeds."
}
},
"parameters":[
{
"in":"path",
"name":"id",
"description":"The ID of the itemType.",
"type":"string",
"required":true
}
],
"tags":[
"Metadata"
]
}
}
},
"definitions":{
"getMetadata_response":{
"properties":{
"items":{
"description":"An array of metadata/ properties information for an item descriptor.",
"type":"array",
"items":{
"type":"object",
"properties":{
"editableAttributes":{
"description":"List of attributes of the property which can be edited from UI.",
"type":"array",
"items":{
"type":"string"
}
}
}
}
}
}
}
},
"swagger":"2.0",
"info":{
"description":"Metadata endpoints",
"title":"Metadata",
"version":"1.0"
}
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|13101|METADATA INTERNAL ERROR|
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