Skip to content

The-oGlow/ya-corapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ya-corapi

Description

Managing the maintenance of a Confluence instance by REST API

What is a ya-corapi?

Y - et
a - nother
-
co - nfluence
r - est
api

Usage

The functions are separated in subfolders uner example

  • Restapi → Base folder for all REST-API examples

  • Projectdoc → Examples using the Projectdoc Toolbox

Starting a function is easy from the shell (commandline)

php -f ./example/<subfolder>/<function>.php

E.g.

php -f ./example/search/searchpage.php

The results are printed to the console or into a file in the target folder

./target/<subfolder>/<yyyymmdd-hhnnss>/<function>.<extension>

The output can be

  • Text

  • CSV

  • JSON

Switch to production

By default the requests are sent to the URL of #confluence-url_for_testing#

  • Edit the file:

    • Unix / Linux: ${HOME}/.ya-corapi/myauth.php

    • Windows: %USERPROFILE%\.ya-corapi\myauth.php

  • Set CONST USE_PROD = false to CONST USE_PROD = true

Roadmap

r0.1 (first release)

  • Move code from PoC to OO

  • Create simple write actions

  • Create examples and describe their purpose

  • Describe the installation and usage of this library

r0.2

r0.3

  • Decouple the REST-API definitions to support different Confluence versions (e.g. Cloud) or Atlassian tools (e.g. Jira)

  • Create write actions by batch

r0.4

  • Code cleanup release

  • Code coverage release

  • Setup github actions

Near or Far Future

  • Create an alternative provider

  • Implement a Cloud fortifed REST-API definition

Additional Information

Notice

  • Examples are working with privat access token (PAT) only!

  • Tested & Working with the Confluence Data Center Edition (DCE)

sonarcloud light

Reference

(c) 2024 by Oliver Glowa