Open Navigation

Adobe EM

Adobe Experience Manager is a content management solution for building websites, mobile apps and forms

Overview

Adobe Experience Manager is a content management solution for building websites, mobile apps and forms.

Authentication

adobe-exp-man-auth

The username and password are the same as the one you use to log into your Adobe Experience Manager instance. You also need to provide the URL and a PORT. For example if the URL to your instance is https://myinstance.com:4502 you will enter https://myinstance.com as URL and 4502 as PORT.

Basic Operations List

  • Download file
  • Get path content
  • List assets folders

Notes on operations usage

Paths - You can navigate through the content of your AEM instance by specifying the path to the folder you wish to get the content of.

A path example: /assets/we-retail/en/people.json

The rel property of a path specifies if the path is relative to the containing folder, or points to resources in another folder. For example a path where rel is equal to self is a path that points to itself, a path where rel is equal to content is a path to a downloadable file.

You can then use the Get path content operation to see what any of these paths contains.

The output of the Get path content operation allows you to navigate through the folders in AEM. Three main properties will be returned:

  • Content: A list of folders/files found for the given path. For each one of these items there is the property path_downloadable that you can use to check whether there is something to download at that path (using the Download file operation) or not.
  • Metadata: A list of properties related to the file, if the path specified points to a file.
  • Navigation: A List of paths that you can use to go either "up" to the parent folder but also to go to the next page of results. If there is a next or previous page of results, this list will also contain a path to the previous or next page

Example

In this scenario, there is a folder called "Project" in the assets section, which contains another folder ("My folder") and a file ("image.png") that we will download.

my-folder-image

You will use the List assets folders operation to find the path to Project. Here's a snippet of the debug:

{
"result": [
{
"name": "project",
"paths": ["/assets/project.json"]
}
]
}

You will then use the Get path content operation to list the content of Project. Here's a snippet of the debug:

{
"content": [
{
"name": "image.png",
"paths": [
{
"path_downloadable": false,
"path": "/assets/project/image.png.json",
"rel": [
"self"
]
},
{
"path_downloadable": true,
"path": "/assets/project/image.png/renditions/original",
"rel": [
"content"
]
}
]
},
{
"name": "my-folder",
"paths": [
{
"path_downloadable": false,
"path": "/assets/project/my-folder.json",
"rel": [
"self"
]
}
]
}
],
"metadata": {},
"navigation": [
{
"path_downloadable": false,
"path": "/assets/project.json",
"rel": [
"self"
]
},
{
"path_downloadable": false,
"path": "/assets.json",
"rel": [
"parent"
]
},
{
"path_downloadable": false,
"path": "/assets/project/folderThumbnail",
"rel": [
"thumbnail"
]
}
]
}

In this last output, the content object contains two objects, the file and the folder. For the file, there are two paths:

  1. The one that is not downloadable, which can be used to get information about the file itself, such as metadata
  2. The one that is downloadable (notice path_downloadable: true) i.e. the file itself.

You can download the file using the "/assets/project/image.png/renditions/original" as the Path parameter of the Download file operation.

Full Operations Reference

Was this article helpful?
Yes
No