Forums

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

JIRA REST API AND SPRING BOOT SESSION

akash prakash
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2019

I wants to use jira server api to get issue, creste issue in jira core server. But what is troubling me is how can I maintain the session after getting all the token and secret key.

Do I need to take the access token and key from the database everytime I wants to request an api to be hit. I am using spring boot for developing restful api for jira. Below is the method that I am currently using to hit an jira api now.

OAuthParameters parameters = jiraOAuthClient.getParameters(tmpToken, secret, properties.get(CONSUMER_KEY), properties.get(PRIVATE_KEY));
HttpResponse response = getResponseFromGetUrl(parameters, new GenericUrl(url));

I am using spring core server 8.2.4 rest apis.

Please let me know if there is some method through which we dont need to execute the code again again to get the access token from database.

Please also refer some example which can be of help in persisting the session.

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events