-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
53 lines (36 loc) · 1.66 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
=== Plugin Name ===
Contributors: schneiderundschuetz
Donate link: https://www.schneiderundschuetz.com/
Tags: api, openapi, swagger, rest api, generator
Requires at least: 5.7
Tested up to: 5.8
Stable tag: 1.0.2
Requires PHP: 7.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
OpenAPI (fka. Swagger) Document Generator for WordPress REST API
== Description ==
This plugin reads the schema definition of a given WordPress REST Api namespace and transforms it to a
OpenAPI document. The generator itself is exposed via the WordPress REST Api with the namespace
document-generator-for-openapi/v1.
Generate a document by calling /wp-json/document-generator-for-openapi/v1/document?namespace=\<NAMESPACE\>. It will return the OpenAPI document.
=== Limitations ===
* Beware that currently the generator is exposeed to anonymous users since the WordPress schema endpoint is also publicly
available.
* No UI for configuration yet
* Currently only version 3.1.0 of the OpenAPI specification is implemented. Swagger tools for 3.0.0 might work though.
* Extensibility with hooks needs to be improved
== Installation ==
1. Install plugin via WordPress Plugin repository or by manually copying files
2. Activate the plugin
3. Access the REST Api of the generator by calling /wp-json/document-generator-for-openapi/v1/document?namespace=\<NAMESPACE\> and your OpenAPI document will be returned.
== Frequently Asked Questions ==
== Screenshots ==
* No screenshots yet
== Changelog ==
= 1.0.2 =
- Added missing files for WordPress plugin repository
= 1.0.1 =
- Changed name of plugin from openapi-generator to document-generator-for-openapi
= 1.0.0 =
- Initial release