Confluence集成实践 3 RestAPI集成方式

上篇文章介绍了Confluence提供的标准的RestAPI主要涵括在那些功能领域。在这篇文章中将会继续使用实际的例子来介绍如何使用这些RestAPI。

Rest Api

Confluence的相关RestAPI在上篇文章中进行了仔细的介绍,具体参看

项目 详细信息
Confluence RestAPI介绍 http://blog.csdn.net/liumiaocn/article/details/77814943

创建空间

Confluence的使用,一般项目从创建一个空间开始,所以第一步,使用Space相关的Api创建一个空间。

事前确认

使用Confluence的进行确认,目前只有两个space。

利用curl,使用Confluence提供的空间查询用的API也是得到一样的结果

[root@ku8-4 ~]# curl -u admin1:admin123 http://192.168.163.134:8090/rest/api/space 2>/dev/null |python -mjson.tool
{
    "_links": {
        "base": "http://192.168.163.134:8090",
        "context": "",
        "self": "http://192.168.163.134:8090/rest/api/space"
    },
    "limit": 25,
    "results": [
        {
            "_expandable": {
                "description": "",
                "homepage": "/rest/api/content/65547",
                "icon": "",
                "metadata": ""
            },
            "_links": {
                "self": "http://192.168.163.134:8090/rest/api/space/ds",
                "webui": "/display/ds"
            },
            "id": 98305,
            "key": "ds",
            "name": "Demonstration Space",
            "type": "global"
        },
        {
            "_expandable": {
                "description": "",
                "homepage": "/rest/api/content/65580",
                "icon": "",
                "metadata": ""
            },
            "_links": {
                "self": "http://192.168.163.134:8090/rest/api/space/SAM",
                "webui": "/display/SAM"
            },
            "id": 98306,
            "key": "SAM",
            "name": "SampleSpace",
            "type": "global"
        }
    ],
    "size": 2,
    "start": 0
}
[root@ku8-4 ~]# 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46

name:相关的项目记载着空间名称,可以看出目前只有两个,和图形界面取得的结果是一致的。

[root@ku8-4 ~]# curl -u admin1:admin123 http://192.168.163.134:8090/rest/api/space 2>/dev/null |python -mjson.tool |grep name
            "name": "Demonstration Space",
            "name": "SampleSpace",
[root@ku8-4 ~]# 
  • 1
  • 2
  • 3
  • 4

创建空间

API

curl -u admin1:admin123 -X POST -H ‘Content-Type: application/json’ -d’ {“key”: “TST”, “name”: “Example space”, “description”: { “plain”: { “value”: “This is an example space”, “representation”: “plain” } }, “metadata”: {}} ’ http://192.168.163.134:8090/rest/api/space

执行日志

[[email protected]4 ~]# curl -u admin1:admin123 -X POST -H ‘Content-Type: application/json‘ -d‘ {"key": "TST", "name": "Example space", "description": { "plain": { "value": "This is an example space", "representation": "plain" } }, "metadata": {}} ‘ http://192.168.163.134:8090/rest/api/space
{"id":98309,"key":"TST","name":"Example space","description":{"plain":{"value":"This is an example space","representation":"plain"},"_expandable":{"view":""}},"homepage":{"id":"65617","type":"page","status":"current","title":"Example space Home","extensions":{"position":"none"},"_links":{"webui":"/display/TST/Example+space+Home","edit":"/pages/resumedraft.action?draftId=65617","tinyui":"/x/UQAB","self":"http://192.168.163.134:8090/rest/api/content/65617"},"_expandable":{"container":"/rest/api/space/TST","metadata":"","operations":"","children":"/rest/api/content/65617/child","history":"/rest/api/content/65617/history","ancestors":"","body":"","version":"","descendants":"/rest/api/content/65617/descendant","space":"/rest/api/space/TST"}},"type":"global","_links":{"webui":"/display/TST","collection":"/rest/api/space","base":"http://192.168.163.134:8090","context":"","self":"http://192.168.163.134:8090/rest/api/space/TST"},"_expandable":{"metadata":"","icon":""}}[[email protected]4 ~]#
  • 1
  • 2

创建后确认

[root@ku8-4 ~]# curl -u admin1:admin123 http://192.168.163.134:8090/rest/api/space 2>/dev/null |python -mjson.tool
{
    "_links": {
        "base": "http://192.168.163.134:8090",
        "context": "",
        "self": "http://192.168.163.134:8090/rest/api/space"
    },
    "limit": 25,
    "results": [
        {
            "_expandable": {
                "description": "",
                "homepage": "/rest/api/content/65547",
                "icon": "",
                "metadata": ""
            },
            "_links": {
                "self": "http://192.168.163.134:8090/rest/api/space/ds",
                "webui": "/display/ds"
            },
            "id": 98305,
            "key": "ds",
            "name": "Demonstration Space",
            "type": "global"
        },
        {
            "_expandable": {
                "description": "",
                "homepage": "/rest/api/content/65617",
                "icon": "",
                "metadata": ""
            },
            "_links": {
                "self": "http://192.168.163.134:8090/rest/api/space/TST",
                "webui": "/display/TST"
            },
            "id": 98309,
            "key": "TST",
            "name": "Example space",
            "type": "global"
        },
        {
            "_expandable": {
                "description": "",
                "homepage": "/rest/api/content/65580",
                "icon": "",
                "metadata": ""
            },
            "_links": {
                "self": "http://192.168.163.134:8090/rest/api/space/SAM",
                "webui": "/display/SAM"
            },
            "id": 98306,
            "key": "SAM",
            "name": "SampleSpace",
            "type": "global"
        }
    ],
    "size": 3,
    "start": 0
}
[root@ku8-4 ~]#
[root@ku8-4 ~]# curl -u admin1:admin123 http://192.168.163.134:8090/rest/api/space 2>/dev/null |python -mjson.tool |grep name
            "name": "Demonstration Space",
            "name": "Example space",
            "name": "SampleSpace",
[root@ku8-4 ~]#
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67

页面确认

确认group信息

[root@ku8-4 ~]# curl -u admin1:admin123 http://192.168.163.134:8090/rest/api/group 2>/dev/null |python -mjson.tool
{
    "_links": {
        "base": "http://192.168.163.134:8090",
        "context": "",
        "self": "http://192.168.163.134:8090/rest/api/group"
    },
    "limit": 200,
    "results": [
        {
            "_links": {
                "self": "http://192.168.163.134:8090/rest/experimental/group/confluence-administrators"
            },
            "name": "confluence-administrators",
            "type": "group"
        },
        {
            "_links": {
                "self": "http://192.168.163.134:8090/rest/experimental/group/confluence-users"
            },
            "name": "confluence-users",
            "type": "group"
        }
    ],
    "size": 2,
    "start": 0
}
[root@ku8-4 ~]#
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

确认用户信息

[root@ku8-4 ~]# curl -u admin1:admin123 http://192.168.163.134:8090/rest/api/user?username=admin 2>/dev/null |python -mjson.tool
{
    "_links": {
        "base": "http://192.168.163.134:8090",
        "context": "",
        "self": "http://192.168.163.134:8090/rest/experimental/user?key=402823065e3f8d2b015e3f9595f20000"
    },
    "displayName": "admin",
    "profilePicture": {
        "height": 48,
        "isDefault": true,
        "path": "/images/icons/profilepics/default.png",
        "width": 48
    },
    "type": "known",
    "userKey": "402823065e3f8d2b015e3f9595f20000",
    "username": "admin"
}
[root@ku8-4 ~]# curl -u admin1:admin123 http://192.168.163.134:8090/rest/api/user?username=admin1 2>/dev/null |python -mjson.tool
{
    "_links": {
        "base": "http://192.168.163.134:8090",
        "context": "",
        "self": "http://192.168.163.134:8090/rest/experimental/user?key=402823065e3f8d2b015e3fa2472d0001"
    },
    "displayName": "administrator",
    "profilePicture": {
        "height": 48,
        "isDefault": false,
        "path": "/download/attachments/65575/user-avatar",
        "width": 48
    },
    "type": "known",
    "userKey": "402823065e3f8d2b015e3fa2472d0001",
    "username": "admin1"
}
[root@ku8-4 ~]# 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37

创建content

事前确认

确认目前的content信息

curl -u admin1:admin123 http://192.168.163.134:8090/rest/api/content/ 2>/dev/null| python -mjson.tool

[root@ku8-4 ~]# curl -u admin1:admin123 http://192.168.163.134:8090/rest/api/content/ 2>/dev/null| python -mjson.tool
{
    "_links": {
        "base": "http://192.168.163.134:8090",
        "context": "",
        "self": "http://192.168.163.134:8090/rest/api/content/"
    },
    "limit": 25,
    "results": [
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65537/child",
                "container": "/rest/api/space/ds",
                "descendants": "/rest/api/content/65537/descendant",
                "history": "/rest/api/content/65537/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/ds",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65537",
                "self": "http://192.168.163.134:8090/rest/api/content/65537",
                "tinyui": "/x/AQAB",
                "webui": "/pages/viewpage.action?pageId=65537"
            },
            "extensions": {
                "position": 8
            },
            "id": "65537",
            "status": "current",
            "title": "Share your page with a team member (step 9 of 9)",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65539/child",
                "container": "/rest/api/space/ds",
                "descendants": "/rest/api/content/65539/descendant",
                "history": "/rest/api/content/65539/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/ds",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65539",
                "self": "http://192.168.163.134:8090/rest/api/content/65539",
                "tinyui": "/x/AwAB",
                "webui": "/pages/viewpage.action?pageId=65539"
            },
            "extensions": {
                "position": 4
            },
            "id": "65539",
            "status": "current",
            "title": "Get serious with a table (step 5 of 9)",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65540/child",
                "container": "/rest/api/space/ds",
                "descendants": "/rest/api/content/65540/descendant",
                "history": "/rest/api/content/65540/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/ds",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65540",
                "self": "http://192.168.163.134:8090/rest/api/content/65540",
                "tinyui": "/x/BAAB",
                "webui": "/pages/viewpage.action?pageId=65540"
            },
            "extensions": {
                "position": 7
            },
            "id": "65540",
            "status": "current",
            "title": "Tell people what you think in a comment (step 8 of 9)",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65541/child",
                "container": "/rest/api/space/ds",
                "descendants": "/rest/api/content/65541/descendant",
                "history": "/rest/api/content/65541/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/ds",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65541",
                "self": "http://192.168.163.134:8090/rest/api/content/65541",
                "tinyui": "/x/BQAB",
                "webui": "/pages/viewpage.action?pageId=65541"
            },
            "extensions": {
                "position": 3
            },
            "id": "65541",
            "status": "current",
            "title": "Prettify the page with an image (step 4 of 9)",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65543/child",
                "container": "/rest/api/space/ds",
                "descendants": "/rest/api/content/65543/descendant",
                "history": "/rest/api/content/65543/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/ds",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65543",
                "self": "http://192.168.163.134:8090/rest/api/content/65543",
                "tinyui": "/x/BwAB",
                "webui": "/pages/viewpage.action?pageId=65543"
            },
            "extensions": {
                "position": 5
            },
            "id": "65543",
            "status": "current",
            "title": "Lay out your page (step 6 of 9)",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65544/child",
                "container": "/rest/api/space/ds",
                "descendants": "/rest/api/content/65544/descendant",
                "history": "/rest/api/content/65544/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/ds",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65544",
                "self": "http://192.168.163.134:8090/rest/api/content/65544",
                "tinyui": "/x/CAAB",
                "webui": "/pages/viewpage.action?pageId=65544"
            },
            "extensions": {
                "position": 2
            },
            "id": "65544",
            "status": "current",
            "title": "Let‘s edit this page (step 3 of 9)",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65545/child",
                "container": "/rest/api/space/ds",
                "descendants": "/rest/api/content/65545/descendant",
                "history": "/rest/api/content/65545/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/ds",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65545",
                "self": "http://192.168.163.134:8090/rest/api/content/65545",
                "tinyui": "/x/CQAB",
                "webui": "/pages/viewpage.action?pageId=65545"
            },
            "extensions": {
                "position": 1
            },
            "id": "65545",
            "status": "current",
            "title": "A quick look at the editor (step 2 of 9)",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65546/child",
                "container": "/rest/api/space/ds",
                "descendants": "/rest/api/content/65546/descendant",
                "history": "/rest/api/content/65546/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/ds",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65546",
                "self": "http://192.168.163.134:8090/rest/api/content/65546",
                "tinyui": "/x/CgAB",
                "webui": "/pages/viewpage.action?pageId=65546"
            },
            "extensions": {
                "position": 0
            },
            "id": "65546",
            "status": "current",
            "title": "What is Confluence? (step 1 of 9)",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65547/child",
                "container": "/rest/api/space/ds",
                "descendants": "/rest/api/content/65547/descendant",
                "history": "/rest/api/content/65547/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/ds",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65547",
                "self": "http://192.168.163.134:8090/rest/api/content/65547",
                "tinyui": "/x/CwAB",
                "webui": "/display/ds/Welcome+to+Confluence"
            },
            "extensions": {
                "position": 8
            },
            "id": "65547",
            "status": "current",
            "title": "Welcome to Confluence",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65548/child",
                "container": "/rest/api/space/ds",
                "descendants": "/rest/api/content/65548/descendant",
                "history": "/rest/api/content/65548/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/ds",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65548",
                "self": "http://192.168.163.134:8090/rest/api/content/65548",
                "tinyui": "/x/DAAB",
                "webui": "/pages/viewpage.action?pageId=65548"
            },
            "extensions": {
                "position": 6
            },
            "id": "65548",
            "status": "current",
            "title": "Learn the wonders of autoconvert (step 7 of 9)",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65580/child",
                "container": "/rest/api/space/SAM",
                "descendants": "/rest/api/content/65580/descendant",
                "history": "/rest/api/content/65580/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/SAM",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65580",
                "self": "http://192.168.163.134:8090/rest/api/content/65580",
                "tinyui": "/x/LAAB",
                "webui": "/display/SAM/SampleSpace"
            },
            "extensions": {
                "position": "none"
            },
            "id": "65580",
            "status": "current",
            "title": "SampleSpace",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65596/child",
                "container": "/rest/api/space/SAM",
                "descendants": "/rest/api/content/65596/descendant",
                "history": "/rest/api/content/65596/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/SAM",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65596&draftShareId=fb9fac91-4805-4f25-8fed-7f41c7182ca2",
                "self": "http://192.168.163.134:8090/rest/api/content/65596",
                "tinyui": "/x/PAAB",
                "webui": "/pages/viewpage.action?pageId=65596"
            },
            "extensions": {
                "position": "none"
            },
            "id": "65596",
            "status": "current",
            "title": "2017-09-02 \u4f1a\u8bae\u7eaa\u8981",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65603/child",
                "container": "/rest/api/space/SAM",
                "descendants": "/rest/api/content/65603/descendant",
                "history": "/rest/api/content/65603/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/SAM",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65603",
                "self": "http://192.168.163.134:8090/rest/api/content/65603",
                "tinyui": "/x/QwAB",
                "webui": "/pages/viewpage.action?pageId=65603"
            },
            "extensions": {
                "position": "none"
            },
            "id": "65603",
            "status": "current",
            "title": "\u6587\u4ef6\u5217\u8868",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65604/child",
                "container": "/rest/api/space/SAM",
                "descendants": "/rest/api/content/65604/descendant",
                "history": "/rest/api/content/65604/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/SAM",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65604",
                "self": "http://192.168.163.134:8090/rest/api/content/65604",
                "tinyui": "/x/RAAB",
                "webui": "/pages/viewpage.action?pageId=65604"
            },
            "extensions": {
                "position": "none"
            },
            "id": "65604",
            "status": "current",
            "title": "\u5f00\u53d1\u6587\u6863",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65608/child",
                "container": "/rest/api/space/SAM",
                "descendants": "/rest/api/content/65608/descendant",
                "history": "/rest/api/content/65608/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/SAM",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65608",
                "self": "http://192.168.163.134:8090/rest/api/content/65608",
                "tinyui": "/x/SAAB",
                "webui": "/pages/viewpage.action?pageId=65608"
            },
            "extensions": {
                "position": "none"
            },
            "id": "65608",
            "status": "current",
            "title": "\u6d4b\u8bd5\u6587\u6863",
            "type": "page"
        },
        {
            "_expandable": {
                "ancestors": "",
                "body": "",
                "children": "/rest/api/content/65617/child",
                "container": "/rest/api/space/TST",
                "descendants": "/rest/api/content/65617/descendant",
                "history": "/rest/api/content/65617/history",
                "metadata": "",
                "operations": "",
                "space": "/rest/api/space/TST",
                "version": ""
            },
            "_links": {
                "edit": "/pages/resumedraft.action?draftId=65617",
                "self": "http://192.168.163.134:8090/rest/api/content/65617",
                "tinyui": "/x/UQAB",
                "webui": "/display/TST/Example+space+Home"
            },
            "extensions": {
                "position": "none"
            },
            "id": "65617",
            "status": "current",
            "title": "Example space Home",
            "type": "page"
        }
    ],
    "size": 16,
    "start": 0
}
[root@ku8-4 ~]#
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313<

    再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

原文地址:https://www.cnblogs.com/firsttry/p/10294094.html

时间: 2024-10-08 15:55:01

Confluence集成实践 3 RestAPI集成方式的相关文章

持续集成实践

持续集成实践(一)- 引子 本系列文章包含: [独孤九剑]持续集成实践(一)- 引子 [独孤九剑]持续集成实践(二)– MSBuild语法入门 [独孤九剑]持续集成实践(三)- Jenkins安装与配置(Jenkins+MSBuild+GitHub) 1.概念描述(了解的话直接跳到第2部分) 1.1.我的理解 持续集成(Continuous Integration),以自动化方式实现“从开发阶段性完毕到部署上线之前”这一阶段的工作.当然也可做到简单部署,复杂的要涉及到持续部署阶段. 1.2.理论

Maven实战(四)——基于Maven的持续集成实践

Martin的<持续集成> 相信非常多读者和我一样.最早接触到持续集成的概念是来自Martin的著名文章<持续集成>.该文最早公布于2000年9月,之后在2006年进行了一次修订.它清晰地解释了持续集成的概念.并总结了10条实践,它们分别为: 仅仅维护一个源代码仓库 自己主动化构建 让构建自行測试 每人每天向主干提交代码 每次提交都应在持续集成机器上构建主干 保持高速的构建 在模拟生产环境中測试 让每一个人都能轻易获得最新的可运行文件 每一个人都能看到进度 自己主动化部署 原始文章

Harbor用户机制、镜像同步和与Kubernetes的集成实践

Habor是由VMWare公司开源的容器镜像仓库.事实上,Habor是在Docker Registry上进行了相应的企业级扩展,从而获得了更加广泛的应用,这些新的企业级特性包括:管理用户界面,基于角色的访问控制 ,AD/LDAP集成以及审计日志等. 容器的核心在于镜象的概念,由于可以将应用打包成镜像,并快速的启动和停止,因此容器成为新的炙手可热的基础设施CAAS,并为敏捷和持续交付包括DevOps提供底层的支持. 而Habor和Docker Registry所提供的容器镜像仓库,就是容器镜像的存

[独孤九剑]持续集成实践(一)- 引子

本系列文章包含: [独孤九剑]持续集成实践(一)- 引子 [独孤九剑]持续集成实践(二)– MSBuild语法入门 [独孤九剑]持续集成实践(三)- Jenkins安装与配置(Jenkins+MSBuild+GitHub) 1.概念描述(了解的话直接跳到第2部分) 1.1.我的理解 持续集成(Continuous Integration),以自动化方式实现“从开发阶段性完毕到部署上线之前”这一阶段的工作.当然也可做到简单部署,复杂的要涉及到持续部署阶段. 1.2.理论层面的描述 下面为摘抄各网站

[独孤九剑]持续集成实践 – MSBuild语法入门

本系列文章包含: [独孤九剑]持续集成实践(一)- 引子 [独孤九剑]持续集成实践(二)– MSBuild语法入门 [独孤九剑]持续集成实践(三)- Jenkins安装与配置(Jenkins+MSBuild+GitHub) 本文是转发“用MSBuild和Jenkins搭建持续集成环境”,由于该文内容十分清晰,我就不再画蛇添足的再写一篇了.只是其中会夹杂一些个人的理解,如果各位看官介意,请移步至原文. 1.开始 在这篇文章中,我们会从头开始,一步步完成一个属于我们自己的MSBuild脚本.在它完成

spring security与cas client集成(无http标签方式)

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema

CentOS 6通过ldap集成AD域账号(nslcd方式)

CentOS 6通过ldap集成AD域账号(nslcd方式): CentOS 6默认有安装nss-pam-ldapd软件(rpm -qa nss-pam-ldapd,rpm -ql nss-pam-ldapd) vi /etc/nsswitch.conf passwd: files ldapgroup: files ldapshadow: files ldap:wq vi /etc/nslcd.conf binddn cn=aa,cn=users,dc=ming,dc=com (aa为普通AD账

个推数据统计产品(个数)iOS集成实践

最近业务方给我们部门提了新的需求,希望能一站式统计APP的几项重要数据.这次我们尝试使用的是个推(之前专门做消息推送的)旗下新推出的产品"个数·应用统计",根据官方的说法,个推的数据统计产品通过专业的移动应用数据分析,可以为用户的应用提供实时数据统计分析服务,包括了解版本质量.渠道状况.用户画像等.数据最后以可视化形式展现,很直观.我们尝试了一段时间,发现效果还是很不错的,这篇文章将为大家介绍如何从零开始快速高效地集成个数iOS SDK. 一.登录账号并创建应用获取 APP ID 1.

基于Jenkins Pipeline的ASP.NET Core持续集成实践

原文:基于Jenkins Pipeline的ASP.NET Core持续集成实践 最近在公司实践持续集成,使用到了Jenkins的Pipeline来提高团队基于ASP.NET Core API服务的集成与部署,因此这里总结一下. 一.关于持续集成与Jenkins Pipeline 1.1 持续集成相关概念 互联网软件的开发和发布,已经形成了一套标准流程,最重要的组成部分就是持续集成(Continuous integration,简称 CI) . 持续集成指的是,频繁地 (一天多次) 将代码集成到