Forums

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

What is the correct way to include REST module in a jira plugin?

Ashish Biswal March 25, 2019

shall i use the command atlas-create-jira-plugin-module or atlas-create-refapp-plugin-module

and what is the url through which it can be accessed?

1 answer

1 accepted

1 vote
Answer accepted
Prakhar Srivastav {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2019

@Ashish Biswal 

You can use atlas-create-jira-plugin-module.

It creates simple REST based on your resource name inputs. You will find the corresponding entry in atlassian-plugin.xml where you can see the url.

I suggest you to use REST API Browser for JIRA while developing you REST.

 

Regards

Prakhar

Ashish Biswal March 25, 2019

@Prakhar Srivastav {Appfire} can you please help me with the REST url of that created jira rest api or is it same as the reffapp tutorial

I have used the default myresource as class name and other default settings.

Prakhar Srivastav {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2019

@Ashish Biswal 

Using REST API browser you can see and find your registered REST service and it's URL.

Typically it is like this :

contextPath +'/rest'+path-in-atlassian-plugin.xml+ resourcePath

 

Regards

Prakhar

Ashish Biswal March 25, 2019

Thanks for the help @Prakhar Srivastav {Appfire} i have tried the get request by following the refapp tutorial.

Any idea about the POST request?

Suggest an answer

Log in or Sign up to answer