how can i display the result of my rest service before invoke it from the gadget?

Hi every one,

i developpe a gadget which have to retreive data from a rest service.

i want show the result of my rest service before communicate it with the gadget.

atlassian-plugin.xml :


<rest key="helloWorldRest" path="/helloworld" version="1.0">
<description>Provides hello world services.</description>

my rest service:


public class RestHelloWorldService {
public Response getUncompletedUsers() {
return Response.ok(new User("Fred","Bloggs")).build();

class User


public class User
private String firstName;

private String lastName;

// This private constructor isn't used by any code, but JAXB requires any
// representation class to have a no-args constructor.
private User() { }

public User(String firstName, String lastName)
this.firstName = firstName;
this.lastName = lastName;

i used this : http://localhost:2990/jira/rest/helloworld/1.0/users

but i had this error :

Etat HTTP 404 - /jira/rest/helloworld/1.0/users

how can display my rest service result ??


3 answers

1 accepted

now not know

know i have this error,

Etat HTTP 401 - os_authType was 'any' and an invalid cookie was sent

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,514 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you