XWiki Integration
SAS_IntegrationRESTIntroduction_OnlyEN
You can integrate third-party systems with in many ways. The method you select will depend on business requirements, architectural and security constraints as well as the characteristics specific to each third-party application or service. You can use the REST, CSV, Online CSV data sources as well as the HTML Script widget.
This document describes a standard integration process with the REST data source that has already been implemented in a customer context. It provides only a few examples of HTTP queries for manipulating resources (i.e. endpoints) using the REST API in the third-party application. You can discover more about the possibilities of this API and consult the relevant documentation on the website of the third-party software company.
To find out more about this integration, please contact the Consulting & Professional Services team, the
Support team, or your service provider and integrator.
Integration Summary
This integration is used to retrieve all available information from your XWiki domain using the XWiki REST API (GET method).
Retrieve and display in an
app a list of all wiki pages (including their name and URI) in a particular space of a particular wiki or from all spaces or wikis answering certain criteria (pages containing specific keywords, etc.)
Integration Data Feed (direction) | Authentication Type | Integration Connector Options | ||
---|---|---|---|---|
|
|
REST data source |
SaaS Version of Third-Party Product |
On-premise Version of Third-Party Product |
---|---|
SAS_ConventionAPIRequests_OnlyEN
Convention for the API requests
Curly brackets { } indicate values you have to supply.
In most of the cases, we draw your attention with:
- in green and bold, the important and mandatory values to be replaced;
- in green, certain important and/or optional values (often choice of parameters).
https://{subdomain}.xwiki ==> replace {subdomain} with the name of your XWiki instance
API detailed description
Item | Comments |
---|---|
About the software and company |
XWiki is a free wiki software platform written in Java with a design emphasis on extensibility. XWiki Enterprise, the enterprise wiki edition, includes WYSIWYG editing, OpenDocument based document import/export, semantic annotations and tagging, and advanced permissions management. |
Information about the REST API |
Date on which the information was retrieved from the software company's website: March 2016 Last known REST API name/version/date: XWiki RESTful API Note: Other APIs that can be used:
|
Main useful links to software company information about REST | |
Format and sample of API resources/endpoints |
For SaaS version:
![]() ==> https://wiki.easyvista.com/xwiki/rest/wikis/wiki/spaces/Documentation/pages
![]() ==> http://localhost:8080/xwiki/rest/wikis/wiki123/spaces/Documentation/pages
|
API assets |
|
API recommendations (limitations, advice, tips) |
|
Comments |
|
Step-by-step integration process
XWiki can be integrated with in 4 easy steps:
- Step 1: Check the list of prerequisites
- Step 2: Start the process for creating the REST data source
- Step 3: Authenticate to XWiki
- Step 4: Create a query string using XWiki documentation
Step 1: Check the list of prerequisites
- This documentation assumes that you already have a XWiki domain/platform or On-premises server.
Step 2: Start the process for creating the REST data source
For details about the creation, see the wiki page REST data source
- Click
in the Objects pane.
- Open the Online category and select the REST data source
.
- Name the data source.
XWiki_List of Pages
Step 3: Authenticate to XWiki
Authenticate with Basic Access Authentication
- Select the type of authentication: Authentication Type = Basic.
- Click
next to the Basic Authentication Parameters field.
- Enter the User Name using the following format: firstname.lastname@company.com. Enter the Password.
- The user name is the XWiki account/login (with Admin credentials) you want to use for this data source.
- The password is the password set for this account.
- Once you validate, the *** symbols will appear in the field.
Step 4: Create a query string using XWiki documentation
See the XWiki REST API References (endpoints)
See Examples of use cases
- Create a query string as a data source, i.e. a resource to access, in the URL field.
You want to create a data source that will retrieve the list of all wiki pages (including their URI) in a particular space of a particular wiki ==> Enter the following text in the URL field. Note: Replace {subdomain} with the name of your XWiki instance.
Best Practice
See Best Practice for the REST data source
- You must keep all information on credentials secure.
Samples of most relevant use cases and resources
Note: Replace in the URI:
- {subdomain} with your subdomain name provided by XWiki.
- {wikiName} and {nestedSpaceName} with the name of the specific wiki and the name of the specific space for which you want to execute API calls.
Method: GET
Use Case | Sample Endpoint | ||||||||
---|---|---|---|---|---|---|---|---|---|
Retrieve the list of wikis available on the XWiki instance
Note: Unless the wiki is configured to be a wiki farm, this list is usually made of a single element xwiki. |
|
||||||||
Retrieve the list of all wiki pages (including their URI) in a particular space of a particular wiki |
|
||||||||
Retrieve the list of wiki pages and objects that contain:
|
|
SAS_IntegrationRESTAboutTheUse_OnlyEN
About the use of the software companies API REST
Note: The possible cost of the use of the third-parties API REST via is not taken care by
.
- Numerous software companies limit the access to the API REST of their software, generally by basing itself on a number of calls by hour/day/month.
- Only specific editions of their software can be eligible in the use of the API REST (with or without additional cost).
- Some software companies set up plans, e.g., Classic, Professional, Enterprise, for which the number of possible calls to the REST API or even to specific resources (i.e. endpoints) can be more or less numerous.