在哪里可以找到Confluence Server REST API的打开API(Swagger)规范?

发布于 2025-02-05 03:25:06 字数 319 浏览 1 评论 0原文

对于Atlassian Confluence Cloud Rest API,这里有一个开放式API(以前称为Swagger)规格: https://developer.atlassian.com/cloud/confluence/swagger.v3.json

我找不到Confluence Server Rest API的开放API规范。任何提示在哪里找到它的提示。

For the Atlassian Confluence Cloud REST API there is an Open API (formerly Swagger) specification available here: https://developer.atlassian.com/cloud/confluence/swagger.v3.json

I was not able to find such an Open API specification for the Confluence Server REST API. Any hints as to where to find it are appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

怀念你的温柔 2025-02-12 03:25:06

这是我发现的:)
我与您分享我的文档:

API Jira Cloud platform

https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/ 
https://developer.atlassian.com/cloud/jira/platform/swagger.json
https://developer.atlassian.com/cloud/jira/platform/swagger.v3.json
https://developer.atlassian.com/cloud/jira/platform/swagger-v3.v3.json


API Jira Software Cloud

https://developer.atlassian.com/cloud/jira/software/rest/intro/  
https://developer.atlassian.com/cloud/jira/software/swagger.json
https://developer.atlassian.com/cloud/jira/software/swagger.v3.json


API Confluence Cloud

https://developer.atlassian.com/cloud/confluence/rest/v1/intro/
https://developer.atlassian.com/cloud/confluence/swagger.json 
https://developer.atlassian.com/cloud/confluence/swagger.v3.json 


Jira Service Management Cloud

https://developer.atlassian.com/cloud/jira/service-desk/rest/intro/ 
https://developer.atlassian.com/cloud/jira/service-desk/swagger.json 
https://developer.atlassian.com/cloud/jira/service-desk/swagger.v3.json

这是我的脚本:在“ Postman环境”变量或“集合变量”中,添加:

baseUrl = https://XXX.atlassian.net
username = [email protected]
token = <token> https://id.atlassian.com/manage-profile/security/api-tokens

在集合的“预定脚本”中,添加:

postman.setEnvironmentVariable(
    "base64", 
    btoa(postman.getEnvironmentVariable("username") + ":" + postman.getEnvironmentVariable("token"))
);
pm.request.headers.add({
    key: "Authorization",
    value: "Basic " + postman.getEnvironmentVariable("base64")
});

添加此配置后:您必须:您必须:禁用每个端点的“授权”配置(因为它们是为旧的登录/密码中的旧基本模式配置的,该模式不再可贬低)

Here is what I found :)
I share my doc with you :

API Jira Cloud platform

https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/ 
https://developer.atlassian.com/cloud/jira/platform/swagger.json
https://developer.atlassian.com/cloud/jira/platform/swagger.v3.json
https://developer.atlassian.com/cloud/jira/platform/swagger-v3.v3.json


API Jira Software Cloud

https://developer.atlassian.com/cloud/jira/software/rest/intro/  
https://developer.atlassian.com/cloud/jira/software/swagger.json
https://developer.atlassian.com/cloud/jira/software/swagger.v3.json


API Confluence Cloud

https://developer.atlassian.com/cloud/confluence/rest/v1/intro/
https://developer.atlassian.com/cloud/confluence/swagger.json 
https://developer.atlassian.com/cloud/confluence/swagger.v3.json 


Jira Service Management Cloud

https://developer.atlassian.com/cloud/jira/service-desk/rest/intro/ 
https://developer.atlassian.com/cloud/jira/service-desk/swagger.json 
https://developer.atlassian.com/cloud/jira/service-desk/swagger.v3.json

Here is my script: in the “Postman environment” variables or in the “collection variables”, add:

baseUrl = https://XXX.atlassian.net
username = [email protected]
token = <token> https://id.atlassian.com/manage-profile/security/api-tokens

In the “Pre-request Script” of the collection, add:

postman.setEnvironmentVariable(
    "base64", 
    btoa(postman.getEnvironmentVariable("username") + ":" + postman.getEnvironmentVariable("token"))
);
pm.request.headers.add({
    key: "Authorization",
    value: "Basic " + postman.getEnvironmentVariable("base64")
});

After adding this configuration: you must disable the “Authorization” configurations of each endpoint (because they are configured for the old Basic mode in login/password which no longer works deprecated)

人间不值得 2025-02-12 03:25:06

我知道这个问题是古老的,但是对于其他来找答案的人来说。

Atlassian服务器/数据中心版本基于泽西岛。因此,有一个内置的实现,可以从您自己的实例生成WADL文件。

更换汇合的主机名,然后浏览到下面的URL。

/REST/API/LATEST/APPLICATION.WADL

希望这会有所帮助

I know the question is old, but for anybody else who came come looking for an answer.

The Atlassian server/Datacenter version is based on Jersey. So there is a built-in implementation to generate the wadl file from your own instance.

replace your hostname of confluence, and just browse to the below URL.

/rest/api/latest/application.wadl

Hope this helps

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文