Is it possible to access Assets rest api from a new project via "Create new project" in developer console? | Community
Skip to main content
Level 4
October 14, 2021
Solved

Is it possible to access Assets rest api from a new project via "Create new project" in developer console?

  • October 14, 2021
  • 2 replies
  • 1016 views

Hi all,
    Like what I ask in subject. Is it possible to access Assets rest api from a new project via "Create new project" in developer console? When I am adding an API into a new project in develop console, it is not easy to find an API related to Assets.
    Or,  it is only possible to access Assets api from local env setup via project firefly/app builder?
    Any suggestions?
    Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by HuiDeShao

I have to correct the answer here. Through recent deeper investigation, I find it is possible for my question. Before, I didn't have the access to Author (dev/uat env) env and also didn't understand what author service is and how to access it.

Firstly, need to get AEM author or publish access from AEM admin, and this can be finished in admin console.

Getting access token:
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/authentication/local-development-access-token.html?lang=en

Access Assets rest api:
https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html#retrieve-a-folder-listing

 

2 replies

HuiDeShaoAuthor
Level 4
October 14, 2021

Is Assets module providing rest api to be accessed from external applicaiton? Or is there any way or idea to access Assets api outside?

HuiDeShaoAuthor
Level 4
October 15, 2021
HuiDeShaoAuthorAccepted solution
Level 4
October 20, 2021

I have to correct the answer here. Through recent deeper investigation, I find it is possible for my question. Before, I didn't have the access to Author (dev/uat env) env and also didn't understand what author service is and how to access it.

Firstly, need to get AEM author or publish access from AEM admin, and this can be finished in admin console.

Getting access token:
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/authentication/local-development-access-token.html?lang=en

Access Assets rest api:
https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html#retrieve-a-folder-listing