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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.