WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


List resources on a Library

Retrieve the resources owned by the specified Library.

The resources of a Library are the DataElements, Rules, and/or Extensions used by that Library.

Definition

GET  /libraries/:library_id/resources

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/libraries/:library_id/resources \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -X GET
  

Example Response

200 OK
{
  "data": [
    {
      "id": "DE8f5841692af240a7894ece6bb6a0a41d",
      "type": "data_elements",
      "attributes": {
        "created_at": "2018-08-31T16:50:37.121Z",
        "dirty": false,
        "enabled": true,
        "name": "My Data Element",
        "published": false,
        "published_at": null,
        "revision_number": 1,
        "updated_at": "2018-08-31T16:50:37.121Z",
        "clean_text": false,
        "default_value": "",
        "delegate_descriptor_id": "kessel-test::dataElements::dom-attribute",
        "force_lower_case": false,
        "review_status": "unsubmitted",
        "storage_duration": null,
        "settings": "{\"elementProperty\":\"html\",\"elementSelector\":\".target-element\"}"
      },
      "relationships": {
        "libraries": {
          "links": {
            "related": "http://localhost:9010/data_elements/DE8f5841692af240a7894ece6bb6a0a41d/libraries"
          }
        },
        "revisions": {
          "links": {
            "related": "http://localhost:9010/data_elements/DE8f5841692af240a7894ece6bb6a0a41d/revisions"
          }
        },
        "property": {
          "links": {
            "related": "http://localhost:9010/data_elements/DE8f5841692af240a7894ece6bb6a0a41d/property"
          },
          "data": {
            "id": "PRc84599694bc34d468d3fb089cac8527a",
            "type": "properties"
          }
        },
        "origin": {
          "links": {
            "related": "http://localhost:9010/data_elements/DE8f5841692af240a7894ece6bb6a0a41d/origin"
          },
          "data": {
            "id": "DEc5de53d104fe47cbbbb58153a9b89529",
            "type": "data_elements"
          }
        },
        "extension": {
          "links": {
            "related": "http://localhost:9010/data_elements/DE8f5841692af240a7894ece6bb6a0a41d/extension"
          },
          "data": {
            "id": "EXf2be9702c6bb4b4f8c58428a0f925049",
            "type": "extensions"
          }
        },
        "updated_with_extension_package": {
          "links": {
            "related": "http://localhost:9010/data_elements/DE8f5841692af240a7894ece6bb6a0a41d/updated_with_extension_package"
          },
          "data": {
            "id": "EP27e9323eb585411fae6086fc78a3b70b",
            "type": "extension_packages"
          }
        }
      },
      "links": {
        "property": "http://localhost:9010/properties/PRc84599694bc34d468d3fb089cac8527a",
        "origin": "http://localhost:9010/data_elements/DEc5de53d104fe47cbbbb58153a9b89529",
        "self": "http://localhost:9010/data_elements/DE8f5841692af240a7894ece6bb6a0a41d",
        "extension": "http://localhost:9010/extensions/EXf2be9702c6bb4b4f8c58428a0f925049"
      },
      "meta": {
        "latest_revision_number": 1
      }
    },
    {
      "id": "RL3b1d2f988dcd4ae892642e8e4e4c84d2",
      "type": "rules",
      "attributes": {
        "created_at": "2018-08-31T16:50:35.808Z",
        "dirty": false,
        "enabled": true,
        "name": "Example Rule",
        "published": false,
        "published_at": null,
        "revision_number": 1,
        "updated_at": "2018-08-31T16:50:35.808Z",
        "review_status": "unsubmitted"
      },
      "relationships": {
        "libraries": {
          "links": {
            "related": "http://localhost:9010/rules/RL3b1d2f988dcd4ae892642e8e4e4c84d2/libraries"
          }
        },
        "revisions": {
          "links": {
            "related": "http://localhost:9010/rules/RL3b1d2f988dcd4ae892642e8e4e4c84d2/revisions"
          }
        },
        "property": {
          "links": {
            "related": "http://localhost:9010/rules/RL3b1d2f988dcd4ae892642e8e4e4c84d2/property"
          },
          "data": {
            "id": "PRc84599694bc34d468d3fb089cac8527a",
            "type": "properties"
          }
        },
        "origin": {
          "links": {
            "related": "http://localhost:9010/rules/RL3b1d2f988dcd4ae892642e8e4e4c84d2/origin"
          },
          "data": {
            "id": "RL02695cfa023b47f885457b385b490442",
            "type": "rules"
          }
        },
        "rule_components": {
          "links": {
            "related": "http://localhost:9010/rules/RL3b1d2f988dcd4ae892642e8e4e4c84d2/rule_components"
          }
        }
      },
      "links": {
        "property": "http://localhost:9010/properties/PRc84599694bc34d468d3fb089cac8527a",
        "origin": "http://localhost:9010/rules/RL02695cfa023b47f885457b385b490442",
        "self": "http://localhost:9010/rules/RL3b1d2f988dcd4ae892642e8e4e4c84d2",
        "rule_components": "http://localhost:9010/rules/RL3b1d2f988dcd4ae892642e8e4e4c84d2/rule_components"
      },
      "meta": {
        "latest_revision_number": 1
      }
    },
    {
      "id": "EX1209a5eaf0584ed09550f5dd2b1b66a9",
      "type": "extensions",
      "attributes": {
        "created_at": "2018-08-31T16:50:37.356Z",
        "dirty": false,
        "enabled": true,
        "name": "kessel-test",
        "published": false,
        "published_at": null,
        "revision_number": 1,
        "updated_at": "2018-08-31T16:50:37.356Z",
        "delegate_descriptor_id": null,
        "display_name": "Kessel Test",
        "review_status": "unsubmitted",
        "version": "1.2.0",
        "settings": "{}"
      },
      "relationships": {
        "libraries": {
          "links": {
            "related": "http://localhost:9010/extensions/EX1209a5eaf0584ed09550f5dd2b1b66a9/libraries"
          }
        },
        "revisions": {
          "links": {
            "related": "http://localhost:9010/extensions/EX1209a5eaf0584ed09550f5dd2b1b66a9/revisions"
          }
        },
        "property": {
          "links": {
            "related": "http://localhost:9010/extensions/EX1209a5eaf0584ed09550f5dd2b1b66a9/property"
          },
          "data": {
            "id": "PRc84599694bc34d468d3fb089cac8527a",
            "type": "properties"
          }
        },
        "origin": {
          "links": {
            "related": "http://localhost:9010/extensions/EX1209a5eaf0584ed09550f5dd2b1b66a9/origin"
          },
          "data": {
            "id": "EXf2be9702c6bb4b4f8c58428a0f925049",
            "type": "extensions"
          }
        },
        "updated_with_extension_package": {
          "links": {
            "related": "http://localhost:9010/extensions/EX1209a5eaf0584ed09550f5dd2b1b66a9/updated_with_extension_package"
          },
          "data": {
            "id": "EP27e9323eb585411fae6086fc78a3b70b",
            "type": "extension_packages"
          }
        },
        "extension_package": {
          "links": {
            "related": "http://localhost:9010/extensions/EX1209a5eaf0584ed09550f5dd2b1b66a9/extension_package"
          },
          "data": {
            "id": "EP27e9323eb585411fae6086fc78a3b70b",
            "type": "extension_packages"
          }
        }
      },
      "links": {
        "property": "http://localhost:9010/properties/PRc84599694bc34d468d3fb089cac8527a",
        "origin": "http://localhost:9010/extensions/EXf2be9702c6bb4b4f8c58428a0f925049",
        "self": "http://localhost:9010/extensions/EX1209a5eaf0584ed09550f5dd2b1b66a9",
        "extension_package": "http://localhost:9010/extension_packages/EP27e9323eb585411fae6086fc78a3b70b",
        "latest_extension_package": "http://localhost:9010/extension_packages/EP27e9323eb585411fae6086fc78a3b70b"
      },
      "meta": {
        "latest_revision_number": 1
      }
    }
  ]
}