Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Expose aem assets as a service

Avatar

Avatar
Validate 1
Level 1
mayap2616058
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
mayap2616058
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
mayap2616058
Level 1

07-06-2018

We have a use case in our project where we need to create an aem asset repository. This would cater assets to multiple other enterprise projects. We are using aem6.4. Please suggest means in which we can achieve this scenario.

We have tried creating Content Fragments, to expose the contents. But we could only get the json from the page created with the content fragment, and not from the fragment directly. But if we are using aem assets, is there a way to generate json for the content fragment directly.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,279 likes

Total Posts

3,155 posts

Correct Reply

889 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,279 likes

Total Posts

3,155 posts

Correct Reply

889 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

08-06-2018

Hi,

You need to setup Content fragments service as mentioned below

Adobe Experience Manager Help | Set up Content Fragments and Content Services in AEM

Did you try with json extenstion to expose content fragments like

http://localhost:4504/content/dam/we-retail/en/experiences/arctic-surfing-in-lofoten/arctic-surfing-...

Answers (4)

Answers (4)

Avatar

Avatar
Boost 5
Level 3
sureshr19072451
Level 3

Likes

18 likes

Total Posts

31 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 3
sureshr19072451
Level 3

Likes

18 likes

Total Posts

31 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
sureshr19072451
Level 3

16-01-2019

If its AEM 6.4, content service is enabled by default. And for AEM 6.3 you have to enable the service. The ideal case is to use content fragment models as opposed to templates. And in both scenario's the easiest and reliable way you can access the CFs content in json format is using below URL -

https://localhost:4502/content/dam/we-retail/en/cfs/orders/cancellations/jcr:content/data/master.jso...

Remember these CFs are created using CF model not template. You can replace master.json with any variation name you may have created for that CF.

Also, those who want to enable access to CFs through Dispatcher you have to make some filter and cache rule changes. Make sure you have some strict regex to accept only required URLs.

I would not use .infinity.json.

Avatar

Avatar
Validate 1
Level 1
mayap2616058
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
mayap2616058
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
mayap2616058
Level 1

08-06-2018

Tried this http://localhost:4504/content/dam/we-retail/en/experiences/arctic-surfing-in-lofoten/arcti c-surfing-in-lofoten.infinity.json

and it worked!!.

Had already set up content fragments as the adobe document.

Avatar

Avatar
Validate 1
Level 1
mayap2616058
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
mayap2616058
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
mayap2616058
Level 1

07-06-2018

Hi Arun,

In the aem 6.4 jar, the package "com.adobe.cq.caas.impl.feature.ContentServicesFeatureFlag", is not present, so as to enable the content service. As per the adobe documentation, aem 6.4 supports content services without any other feature packages. Would appreciate some advice on this.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,279 likes

Total Posts

3,155 posts

Correct Reply

889 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,279 likes

Total Posts

3,155 posts

Correct Reply

889 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

07-06-2018