Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,298
Community Members
 
Community Events
168
Community Groups

No REST API v2 endpoints

Edited

It seems like my local Jira Server generated by the Atlassian SDK has only REST API v1 endpoints.

My Jira version is v8.13.7 and by baseUrl is http://localhost:2990/jira

Is something configured wrong?

 

Query to REST API v1 works:

curl --request GET \
--url 'http://localhost:2990/jira/rest/api/1.0/endpoint' \
--user 'user:pass' \
--header 'Accept: application/json'

{"nevilleBartos":"There's no end points here. Here, there's no end points, alright? End points *no*, Robbo?","robbo":"No end points!"}

 

Query to REST API v2 (also v3) doesn't work:

It's not just this one, it's all enpoints with v2 v3 and latest.

curl --request GET \
--url 'http://localhost:2990/jira/rest/api/2/dashboard' \
--user 'user:pass' \
--header 'Accept: application/json'

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops, sie haben einen toten Link gefunden. - JIRA</title><script type="text/javascript">contextPath = "/jira";</script><link type='text/css' rel='stylesheet' href='/jira/static-assets/metal-all.css' media='all'><script src='/jira/static-assets/jquery-min.js'></script><script src='/jira/static-assets/metal-all.js'></script><meta name="decorator" content="none" /></head><body class=" error-page error404"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="banner" aria-label="Site"></header><div id="content"><div class="aui-page-panel" ><div class="aui-page-panel-inner"><main role="main" id="main" class="aui-page-panel-content lowerContent" ><div id="error-state"><span class="error-type"></span><h1>Oops, sie haben einen toten Link gefunden.</h1><ul><li>Gehe zurück <a href="javascript&colon;window.history.back()">zur letzten Seite</a></li><li>Gehe zur <a href="/jira/secure/MyJiraHome.jspa">Startseite </a></li></ul></div></main></div></div></div><footer id="footer" role="contentinfo"><section class="footer-body"><ul class="atlassian-footer">
<li>
Atlassian Jira <a class="seo-link" rel="nofollow" href="https://www.atlassian.com/software/jira">Project Management Software</a>
<span id="footer-build-information">(v8.13.7#813007-<span title='3e6833b6aa4b98966fa10c8ab5e2a573d1da0bde' data-commit-id='3e6833b6aa4b98966fa10c8ab5e2a573d1da0bde}'>sha1:3e6833b</span>)</span>
</li>
<li>
<a id="about-link" rel="nofollow" href="/jira/secure/AboutPage.jspa/secure/AboutPage.jspa">About Jira</a>
</li>
<li>
<a id="footer-report-problem-link" rel="nofollow" href="/jira/secure/CreateIssue!default.jspa">Report a problem</a>
</li>
</ul>
<p class="atlassian-footer">
<span class="licensemessage">
Diese <a rel='nofollow' href='http://www.atlassian.com/software/jira'>Jira</a>-Website dient lediglich der nicht produktiven Verwendung.

</span>
</p>
<div id="footer-logo"><a href="http://www.atlassian.com/" rel="nofollow">Atlassian</a></div></section></footer></div></body></html>

The REST API Browser is also only showing v1.0 endpoints.

Screenshot 2021-11-09 191039.png

 

1 answer

1 accepted

0 votes
Answer accepted

Problem was that the REST API plugin wasn't started.

Restarting helped.

Deleting the generated plugin folders .bundles-plugins & .osgi-plugins in /target/jira/home/plugins may have also helped.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events