getMetadataCatalog

get

/ccstore/v1/metadata-catalog

Get Metadata Catalog. Returns metadata catalog. Returns Swagger metadata catalog.

Request

There are no request parameters for this operation.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getMetadataCatalog_response
Type: object
Nested Schema : definitions
Type: object
Nested Schema : info
Type: object
Nested Schema : paths
Type: object
Nested Schema : schemes
Type: array
Nested Schema : tags
Type: array
Nested Schema : EntityDefinition
Type: object
Nested Schema : /path1/path2
Type: object
Nested Schema : items
Type: object
Example application/json

{
    "basePath":"/ccstore/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":[
                    "Store/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|
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

{
  "basePath": "/ccstore/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"
  }
}