Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I know the current rest api version of the confluence server

I only know the version of the confluence server, but the rest api is not consistent with it.

1 answer

1 accepted

1 vote
Answer accepted
Daniel Ebers Community Leader Dec 31, 2020

Hi @apathytz

welcome to the Atlassian Community!

The REST API version of Confluence Server correspondents with its version number, you can compare here:
https://docs.atlassian.com/ConfluenceServer/rest/7.10.0/

Let's assume you have currently installed Confluence version 6.6.17 you can change the URL so it reads:
https://docs.atlassian.com/ConfluenceServer/rest/6.6.17/

It this what you were looking for?

Cheers,
Daniel

I am using Atlassian Confluence 6.15.8, but when I look up the API of https://docs.atlassian.com/ConfluenceServer/rest/6.15.8, the response I get after actually calling is inconsistent with the API

 

for example,

When I call /rest/api/space?spaceKey=api, the structure returned is 

{
"results": [
{
"id": xxx,
"key": "api",
"name": "xxx",
"type": "global",
"_links": {
"webui": "/display/api",
"self": "xxx"
},
"_expandable": {
"metadata": "",
"icon": "",
"description": "",
"homepage": "/rest/api/content/xxx"
}
}
],
"start": 0,
"limit": 25,
"size": 1,
"_links": {
"self": "https://xxx/rest/api/space?spaceKey=api&status=current",
"base": "https://xxx",
"context": ""
}
}

But the response of the document is

https://docs.atlassian.com/ConfluenceServer/rest/6.15.8/#api/space-spaces


Yes, that's correct, your response matches the document.

I think the problem is that you're not understanding that your call to the api is going to return the data about your space, rather than a clone of the example.  The call you are making is not the same as the one in the documentation example, and your spaces are not set up the same as the confluence the documentation is based on.

ok, I got it, thanks. The document only gives one example of response of the current API, but what I need is a common response, otherwise I cannot know the structure of the API response, because the only way I get the api information is the document. So when I cannot actually call a certain version of the API, is there any good way for me to get the common response?

The REST API docs document the format of the response.  The example output is already a "common response", it's just got data in it that is different to yours.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

177 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you