Can't find my rest api URL

Hi, I googled a few but can’t reach my rest api URL. How I can reach my rest api URL?

My server runs on localhost:8080 and here is my atlassian-plugin.xml:

<rest name="Rest Service" key="rest" path="restservice" version="1.0">
    <description key="restservice">The rest service</description>

Here is my (abbreviated):

public class rest {
    public String child(@Context HttpServletRequest req, @Context HttpServletResponse resp)  {
        return "dollarrate";

I tried http://localhost:8080/context/rest/restservice/1.0/main/child but I get 404 Oops, you've found a dead link.

Thanks for your help already!

I am answering myself:

The url is: http://localhost:8080/rest/restservice/1.0/main/child

1 Like