Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Rest call to get macro body

Deleted user Jan 22, 2017

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?

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes

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.

Deleted user Jan 24, 2017

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.

 

Dependencies:

 compile('com.atlassian.connect:atlassian-connect-spring-boot-starter:1.2.1')

 compile('com.atlassian.connect:atlassian-connect-spring-boot-jpa-starter:1.2.1')


@Ravi Teja Chennupati, those are the right dependencies.

I created a small Gradle sample the other day (see atlassian-connect-spring-boot-sample-gradle), and I have no trouble accessing AtlassianHostRestClients there.

TAGS

Community Events

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

Events near you