Skip to content

adobe/aem_osgi_testbench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aem_osgi_testbench

About AEM OSGi Test Bench

OSGI REST Test Bench was created to provide developer examples of interacting with AEM OSGI via REST based APIs. It provides functional cases to query AEM for available workflows, running workflows, creation of workflows, resources from Sites instances as well as Assets specific content.

image

In each API example, clicking on the ? will reveal an AJAX based example that demonstrates querying for the respective API.

image

Setting up the Test Bench

  1. Navigate to your WWW published directory structure. On the Mac this may be /Library/WebServer/Documents/ (the default location)

  2. Within this location create a new directory called “osgitoolkit”

  3. Place the OSGI Toolkit HTML file into this location and rename the file “index.html”. You should have a directory structure that looks like this:

../osgitoolkit/index.hml

  1. If not already running, start your Apache instance with this command in the shell:

sudo apachectl start

  1. Launch your browser and point it to http://localhost/osgitoolkit

You should see something that looks like below.

image

If not, see if any other web content is accessible or double check Apache is actually running.

With the previous steps complete, now to configure your local AEM instance to allow connections.

Configuring Adobe Experience Manager

  1. Navigate to the AEM administration panel and click on the Web Console item.

image

  1. Search for and select the Apache Sling Referrer Filter item. Click the pencil icon to make edits that reflect below.

image

The above presumes you are running AEM on your local instance; if not make the entry reflect your instance accordingly. Make your changes and click “Save”.

  1. Next, search and select the Adobe Granite Cross Origin Resource Sharing item. Click the pencil icon to make edits that reflect below.

image

As with the previous change, note the server location may be unique to your instance.

Additionally note the added Supported Header values.

Click Save to apply the changes.

Once changes have been applied you should be able now return to your browser. Clicking the Get Running Workflow Instances should now return a result that lists workflows that exist on your specific AEM instance.

image

You should see a response output to the results field as shown below:

image

Optional

While not required, if you want to run the Trigger Full Workflow instance, the sample payload included contains elements aligned with the “Simple Assign Workflow”. Using the package manager, install the package to add that workflow model to your instance.

image

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages