You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

projectdoc Toolbox

Add-on to extend projectdoc with an API to access on the web.

Categories
Version
3.1.0
projectdoc Toolbox
2.5.1

Available on the Atlassian Marketplace

Contents


projectdoc documents provide properties via the Document Properties Marker Macro and (optionally) Document Properties Supplier Macro.

These properties may define and document real configuration data or metadata information. Therefore there are use cases where teams want to access these properties from other information systems.

This extension provides a REST web API to query space properties and document properties.

 

Representations are rendered in JSON and XML. Queries, supported for projectdoc documents, may also return representations in CSV. Properties for space and document instances are also available in the Java Properties format.

REST Resources

The extension provides one resource to request representations for spaces and one for documents.

This is the list of REST resources provided by the projectdoc Web-API Extension:

REST Services

The extension provides the following services on document and space resources.

PathHTTP MethodShort Description
rest/projectdoc/1/documentGET
Supports queries on projectdoc documents.
rest/projectdoc/1/documentPATCH
Adds, removes, and applies changes to properties and sections of a projectdoc document.
rest/projectdoc/1/documentPOST
Creates a new projectdoc document based on a document representation.
rest/projectdoc/1/document/{id}DELETE
Deletes the referenced projectdoc document.
rest/projectdoc/1/document/{id}GET
Provides access to a projectdoc document.
rest/projectdoc/1/document/{id}PATCH
Updates projectdoc documents.
rest/projectdoc/1/document/{id}/property/{name}DELETE
Deletes a document property.
rest/projectdoc/1/document/{id}/property/{name}GET
Provides access to a projectdoc document property.
rest/projectdoc/1/document/{id}/property/{name}
PATCH
Updates and renames a document property.
rest/projectdoc/1/document/{id}/property/{name}POST
Adds a property to a document.
rest/projectdoc/1/document/{id}/section/{name}DELETE
Deletes a section from a projectdoc document.
rest/projectdoc/1/document/{id}/section/{name}GET
Provides read access to a projectdoc document section.
rest/projectdoc/1/document/{id}/section/{name}PATCH
Updates and renames a section of a projectdoc document.
rest/projectdoc/1/document/{id}/section/{name}POST
Adds a section to a projectdoc document.
rest/projectdoc/1/i18n/mapGET
Generate a resource bundle with translations for a given set of keys.
rest/projectdoc/1/service/csv-documentPOST
Runs an update on a single projectdoc document based on an uploaded file. The information will patch the existing document or create a new one if the document does not exist.
rest/projectdoc/1/service/csv-tablePOST
Runs a bulk update based on a uploaded file. The information will patch existing files and create new ones.
rest/projectdoc/1/service/document-create-facadePOST
Creates a new projectdoc document based on a doctype, name, and short description.
rest/projectdoc/1/service/document-create-hierarchyPOST
Creates a hierarchy of documents based on the posted document.

Accessing the API

There are different approaches to access the web API provided by the projectdoc Toolbox via this extension.

REST API Browser

Use the REST API Browser of Confluence to start using the REST API provided by projectdoc.

The browser is accessible via plugins/servlet/restbrowser. For more information please refer to Using the REST API Browser.

Bookmarklets

The Bookmarklets Extension allows to integrate calls to the web API into the user's browser.

With bookmarklets services are brought to the fingertips of the users. The organization of bookmarks can be personalized very easily.

The Bookmarklets Extension provides a number of bookmarklets to get started. With the Bookmarklet Editor these bookmarklets can be loaded and installed. The editor also allows to create new bookmarklets.

An overview over projectdoc bookmarklets is available on Bookmarklets List Macro.

cURL

There are a lot of tools and programming libraries to use REST APIs.

cURL is one example to integrate information from projectdoc documents into remote information systems.

Logging

Logging is controlled by the package identifier de.smartics.projectdoc.extension.webapi.rest.

Version Tags

ETags are only supported for Confluence since version 5.10.x and version 1.1 of the web api.

Resources

Related information on using REST APIs (with cURL) to integrate with remote information systems.

REST Login to Confluence with cURL
To access Confluence via its REST API with cURL you typically need to authenticate. Learn how to login with cURL and avoid some common security pitfalls.
Accessing projectdoc Properties with cURL
Learn how to access projectdoc properties via REST API with cURL.
Confluence as the Information Hub
Tools from the projectdoc Toolbox to import from and export to other information systems.
Import Resource
Provides services to import information from Maven artifacts into Confluence.

Related products to use with the projectdoc Toobox.

History Manager for Confluence
Manage history information in Confluence!
Bookmarklet Editor
The bookmarklets editor is a simple page that allows teams to create their bookmarklets more easily. It also provides access to some standard bookmarklets provided for the projectdoc Toolbox.

  • No labels