Go to file
CMX\tiburon f1f87a39f2 URMS-36: Плагин для Confluence готов, протестирован и поставлен в бой. 2019-07-29 13:07:40 +03:00
src/main URMS-36: Плагин для Confluence готов, протестирован и поставлен в бой. 2019-07-29 13:07:40 +03:00
.gitignore URMS-36: Плагин для Confluence готов, протестирован и поставлен в бой. 2019-07-29 13:07:40 +03:00
README.md URMS-36: Плагин для Confluence готов, протестирован и поставлен в бой. 2019-07-29 13:07:40 +03:00
pom.xml URMS-36: Плагин для Confluence готов, протестирован и поставлен в бой. 2019-07-29 13:07:40 +03:00

README.md

OCTOPUS CodeWare

REST API Extender for Confluence

REST API for automated Confluence configuration with URMS

Resources

All resources produce JSON (media type: application/json) results.

Page versions

Get and delete outdated page versions

  • GET /rest/extender/1/api/versions/all

    QueryString

    • type: all or page or attachment. (default:all)
    • endDays: 1 (0=today, 1=yesterday) (default:0)
    • limit: 11000 (default:1000)

    Get all page versions in all instance.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

  • DELETE /rest/extender/1/api/versions/all

    QueryString

    • type: all or page or attachment. (default:all)
    • endDays: 1 (0=today, 1=yesterday) (default:0)
    • limit: 11000 (default:1000)

    Remove all page versions in all instance.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

  • GET /rest/extender/1/api/versions/space/{spaceKey}

    QueryString

    • spaceKey: Key of the target space. (required)
    • type: all or page or attachment. (default:all)
    • endDays: 1 (0=today, 1=yesterday) (default:0)
    • limit: 11000 (default:1000)

    Get all page versions in space with key=spaceKey.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

  • DELETE /rest/extender/1/api/versions/space/{spaceKey}

    QueryString

    • spaceKey: Key of the target space. (required)
    • type: all or page or attachment. (default:all)
    • endDays: 1 (0=today, 1=yesterday) (default:0)
    • limit: 11000 (default:1000)

    Remove all page versions in space with key=spaceKey.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

  • GET /rest/extender/1/api/versions/page/{pageId}

    QueryString

    • pageId: Id of the target page. (required)
    • type: all or page or attachment. (default:all)
    • endDays: 1 (0=today, 1=yesterday) (default:0)
    • limit: 11000 (default:1000)

    Get versions of the page with id=pageId.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

  • DELETE /rest/extender/1/api/versions/page/{pageId}

    QueryString

    • pageId: Id of the target page. (required)
    • type: all or page or attachment. (default:all)
    • endDays: 1 (0=today, 1=yesterday) (default:0)
    • limit: 11000 (default:1000)

    Remove versions of the page with id=pageId.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

Trashes

Get and delete trash

  • GET /rest/extender/1/api/trash/all

    QueryString

    • limit: 11000 (default:1000)

    Get all trash in all instance.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

  • DELETE /rest/extender/1/api/trash/all

    QueryString

    • limit: 11000 (default:1000)

    Remove all trash in all instance.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

  • GET /rest/extender/1/api/trash/space/{spaceKey}

    QueryString

    • spaceKey: Key of the target space. (required)
    • limit: 11000 (default:1000)

    Get trash from space with key=spaceKey.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

  • DELETE /rest/extender/1/api/trash/space/{spaceKey}

    QueryString

    • spaceKey: Key of the target space. (required)
    • limit: 11000 (default:1000)

    Remove trash from space with key=spaceKey.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

    QueryString

    • type: all or page or attachment. (default:all)
    • endDays: 1 (0=today, 1=yesterday) (default:0)
    • limit: 11000 (default:1000)

    Remove versions of the page with id=pageId.

    Responses

    Status 200

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

Syncronise Crowd User Directory

  • GET /rest/extender/1/directory

    Get info about User Directories.

    Responses

    Status 200

    [
      {
        "id": 262145,
        "type": "INTERNAL",
        "issynchronising": false
      },
      {
        "id": 1277953,
        "type": "CROWD",
        "issynchronising": false
      }
    ]
    

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.

  • PUT /rest/extender/1/directory

    QueryString

    • id: User Directory ID. (required)

    Start sycronyse User Directory.

    Responses

    Status 200

    If OK, issynchronising of target directory returned as true

    [
      {
        "id": 262145,
        "type": "INTERNAL",
        "issynchronising": false
      },
      {
        "id": 1277953,
        "type": "CROWD",
        "issynchronising": true
      }
    ]
    

    Status 401

    Returned if the current user is not authenticated.

    Status 403

    Returned if the current user is not an administrator.