I'm working on a requirement to get macro content body from server side code. I'm using the rest api "/rest/api/content/<page-id>/history/<page-version>/macro/id/<macro-id>" for the same. We are using Atlassian Spring Boot connect framework in our project. How can we pass authentication details in the rest calls?
Community moderators have prevented the ability to post new answers.
Hi @Ravi Teja Chennupati,
as described in the README, you can call
AtlassianHostRestClients#authenticatedAsAddon() to obtain a Spring
RestTemplate HTTP client that will automatically provide JWT authentication for requests from your add-on to an installed host product.
Thank you @Einar Pehrson. I'm facing challenge in importing AtlassianHostRestClients. Below are the dependencies specified in my build.gradle file. I don't see any documentation around the same. Any pointers would be appreciated.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events