Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ <h1>
<p><b>1.12.1</b> (to be determined)</p>
<ul>
<li>Now requires Openfire 5.1.0 or later</li>
<li>[<a href="https://github.com/igniterealtime/openfire-restAPI-plugin/issues/266">#266</a>] - Documentation: replace list of (unmaintained) REST API clients with instructions to generate a client from the OpenAPI specification</li>
<li>[<a href="https://github.com/igniterealtime/openfire-restAPI-plugin/issues/265">#265</a>] - Ensure cross-database compatibility for unread message count query</li>
<li>[<a href="https://github.com/igniterealtime/openfire-restAPI-plugin/issues/261">#261</a>] - Remove the deprecated 'userservice' endpoint</li>
<li>[<a href="https://github.com/igniterealtime/openfire-restAPI-plugin/issues/259">#259</a>] - Prevent system property requests from affecting properties other than the one requested</li>
Expand Down
22 changes: 10 additions & 12 deletions readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<li><a href="#ci-build-status">CI Build Status</a></li>
<li><a href="#reporting-issues">Reporting Issues</a></li>
<li><a href="#feature-list">Feature list</a></li>
<li><a href="#available-rest-api-clients">Available REST API clients</a></li>
<li><a href="#generating-a-rest-api-client">Generating a REST API client</a></li>
<li><a href="#installation">Installation</a></li>
<li><a href="#explanation-of-rest">Explanation of REST</a></li>
<li><a href="#authentication">Authentication</a></li>
Expand Down Expand Up @@ -154,19 +154,17 @@ <h2 id="feature-list">Feature list</h2>
<li>Get clustering status of Openfire</li>
<li>Get overview of ‘readiness’ and ‘liveness’ state of Openfire</li>
</ul>
<h2 id="available-rest-api-clients">Available REST API clients</h2>
<p>REST API clients are implementations of the REST API in a specific programming language.</p>
<h3 id="official">Official</h3>
<h2 id="generating-a-rest-api-client">Generating a REST API client</h2>
<p>The plugin publishes an <a href="https://www.openapis.org/">OpenAPI</a> specification that describes all of its endpoints. Rather
than relying on a hand-written client library, use this specification to generate a client for your programming
language of choice, using tools like <a href="https://openapi-generator.tech/">OpenAPI Generator</a>.</p>
<p>When the plugin is installed, the specification is available at:</p>
<ul>
<li>JAVA: <a href="https://github.com/igniterealtime/REST-API-Client">https://github.com/igniterealtime/REST-API-Client</a></li>
</ul>
<h3 id="third-party">Third party</h3>
<ul>
<li>PHP: <a href="https://github.com/gidkom/php-openfire-restapi">https://github.com/gidkom/php-openfire-restapi</a> (partly implemented)</li>
<li>PHP: <a href="https://github.com/gnello/php-openfire-restapi">https://github.com/gnello/php-openfire-restapi</a> (partly implemented)</li>
<li>GO Lang: <a href="https://github.com/Urethramancer/fireman">https://github.com/Urethramancer/fireman</a> (partly implemented)</li>
<li>Python: <a href="https://github.com/seamus-45/openfire-restapi">https://github.com/seamus-45/openfire-restapi</a> (partly implemented)</li>
<li><code>http://example.org:9090/plugins/restapi/v1/openapi.yaml</code> (YAML)</li>
<li><code>http://example.org:9090/plugins/restapi/v1/openapi.json</code> (JSON)</li>
</ul>
<p>An interactive version of the documentation, based on this specification, is linked from the plugin's page in the
Openfire admin console.</p>
<h2 id="installation">Installation</h2>
<p>Copy restAPI.jar into the plugins directory of your Openfire server. The plugin will be automatically deployed. To upgrade to a newer version, overwrite the restAPI.jar file with the new one.</p>
<p><em>Important Step:</em> To enable the plugin make sure to set the system property <code>adminConsole.access.allow-wildcards-in-excludes</code> to <code>true</code></p>
Expand Down
18 changes: 9 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ Issues may be reported to the [forums](https://discourse.igniterealtime.org) or
* Get clustering status of Openfire
* Get overview of 'readiness' and 'liveness' state of Openfire

## Available REST API clients
REST API clients are implementations of the REST API in a specific programming language.
## Generating a REST API client
The plugin publishes an [OpenAPI](https://www.openapis.org/) specification that describes all of its endpoints. Rather
than relying on a hand-written client library, use this specification to generate a client for your programming
language of choice, using tools like [OpenAPI Generator](https://openapi-generator.tech/).

### Official
* JAVA: https://github.com/igniterealtime/REST-API-Client
When the plugin is installed, the specification is available at:
* `http://example.org:9090/plugins/restapi/v1/openapi.yaml` (YAML)
* `http://example.org:9090/plugins/restapi/v1/openapi.json` (JSON)

### Third party
* PHP: https://github.com/gidkom/php-openfire-restapi (partly implemented)
* PHP: https://github.com/gnello/php-openfire-restapi (partly implemented)
* GO Lang: https://github.com/Urethramancer/fireman (partly implemented)
* Python: https://github.com/seamus-45/openfire-restapi (partly implemented)
An interactive version of the documentation, based on this specification, is linked from the plugin's page in the
Openfire admin console.

## Installation

Expand Down
Loading