I have developed a bamboo plugin, as per the tutorial i can access the rest url when using
atlas-run
http://<host>:5990/refapp/rest/myrestresource/1.0/message
But now i have installed the plugin to my bamboo instance, how can i access the rest url of my plugin. i am tyring to access it using url as
http://localhost:8085/bamboo/rest/myrestresource/1.0/message
not its showing me page not found error.
/**
* A resource of message.
*/
@Path("/message")
public class MyRestResource {
@GET
@AnonymousAllowed
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public Response getMessage()
{
return Response.ok(new MyRestResourceModel("Hello World")).build();
}
}
<?xml version="1.0" encoding="UTF-8"?>
<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}"/>
<param name="plugin-icon">images/pluginIcon.png</param>
<param name="plugin-logo">images/pluginLogo.png</param>
</plugin-info>
<!-- add our i18n resource -->
<resource type="i18n" name="i18n" location="RestAPI"/>
<!-- add our web resources -->
<web-resource key="RestAPI-resources" name="RestAPI Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="RestAPI.css" location="/css/RestAPI.css"/>
<resource type="download" name="RestAPI.js" location="/js/RestAPI.js"/>
<resource type="download" name="images/" location="/images"/>
<context>RestAPI</context>
</web-resource>
<rest name="My Rest Resource" i18n-name-key="my-rest-resource.name" key="my-rest-resource" path="/myrestresource" version="1.0">
<description key="my-rest-resource.description">The My Rest Resource Plugin</description>
</rest>
</atlassian-plugin>