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

How to call internal REST endpoint from jquery-ajax Edited

Tharanga Thennakoon Aug 16, 2017

Hi i am developing atlassian-connect addon by using atlassian-connect-spring-boot. Now i want to call addon-web-application rest service from jquery-ajax. 

This is my jquery-ajax request.

AJS.$.ajax({
type: "POST",
dataType: "html",
url: contextPath + "/products",
data: {},
cache: false,
error: function(response, textStatus, errorThrown) {
console.log('error response', response);
} ,
success: function(response, textStatus) {
console.log('success response', response);
}
});

I got 401 authentication-failure responce. Do i need to concat context-parameters for the requested url. If need how can i use context-parameters.  Could you please give me a solution to fix this issue.

0 answers

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

4,657 views 21 23
Read article

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