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
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,294 views 5 10
Read article

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