Expand my Community achievements bar.

Leveraging repoless approach for crosswalk projects

Avatar

Level 2
 

I want to leverage the repo less approach for my new EDS cross walk project, where four developers will be working collaboratively. Each developer will create their own feature branch in GitHub. Before merging their changes into the dev branch, they need to test their individual features separately.

In the repo less documentation, Adobe mentions that it is possible to create multiple sites within a single repository. If we want to create a site for our cross walk project, what should be specified in the Content Source URL?

Additionally, how can we configure the setup to allow each developer to test their features independently on their respective branches?

 

josephambrose_0-1732601862222.png

 

4 Replies

Avatar

Community Advisor

Hi @josephambrose 

The source url for this would be 

"content": {
        "source": {
            "url": "{{author_host}}/bin/franklin.delivery/{org}/{site}/main",
            "type": "markup",
            "suffix": ".html"
        }
}

Reference - https://www.aem.live/docs/admin.html#tag/siteConfig/operation/createSiteSite

 

Hope this helps!

Thanks

Avatar

Level 2

Thanks @ShaileshBassi I'll try this solution. But before that, as per the documentation, we have to create the organization first. I have downloaded the Admin API postman collection and configured it. Authorization part is little confusing here.

 

josephambrose_0-1732768950578.png

I have logged in using https://admin.hlx.page/auth/adobe url and got the auth_token from cookie.. But I am getting 401-unauthorized when i hit the create organization API. Here is the screenshot : 

josephambrose_1-1732769115456.png

 

Am I missing anything? 

Avatar

Community Advisor

Hi @josephambrose 

You can hit the url https://admin.hlx.page/auth/adobe and from here it will ask your credentials. Once done it will show you sometime like 

ShaileshBassi_0-1732772641255.png

Now navigate to chrome tools -> application. From the cookie you will be able to get the authorization token.

Hope this helps!

Thanks.

 

 

Avatar

Level 2

Hi @ShaileshBassi I did the same and I have copied the auth_token cookie from application tab and pasted it in Authorization part of Postman client. 

 

josephambrose_0-1732772902555.png

It got reflected on Headers part as shown in the below screenshot:

josephambrose_1-1732772983672.png

But I am getting 401-unauthorized only.