Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

URL for ajax rest call to the java file

Ashish Biswal February 26, 2019

atlassian-plugin.xml :-

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

</rest>

 

Plugin Details :-

group-id

com.example.plugins.tutorial

artifact-id

tutorial-jira-add-content-to-view-issue-screen

version

1.0-SNAPSHOT

package

com.example.plugins.tutorial

 

Java File :-

class outer{

class inner{

@Path("/key")

@Post

public string get()

}}

 

Ajax call :-

Ajs.$.ajax{

url: "http://localhost:2990/jira/rest/helloworld/1.0/key",

type: "post"

}

 

My url looks something like this but when hit from browser it returns 404

Can anyone please help me correct this ?

0 answers

Suggest an answer

Log in or Sign up to answer