Title: Document Generator for OpenAPI
Author: Schneider &amp; Schütz GmbH
Published: <strong>21 Setembro, 2021</strong>
Last modified: 4 Julho, 2023

---

Procurar plugins

Este plugin **não foi testado com as 3 últimas grandes versões do WordPress**. Pode
já não ser suportado e pode ter problemas de compatibilidade quando usado com versões
mais recentes do WordPress.

![](https://s.w.org/plugins/geopattern-icon/document-generator-for-openapi.svg)

# Document Generator for OpenAPI

 Por [Schneider & Schütz GmbH](https://profiles.wordpress.org/schneiderundschuetz/)

[Descarregar](https://downloads.wordpress.org/plugin/document-generator-for-openapi.1.1.0.zip)

 * [Detalhes](https://pt.wordpress.org/plugins/document-generator-for-openapi/#description)
 * [Avaliações](https://pt.wordpress.org/plugins/document-generator-for-openapi/#reviews)
 *  [Instalação](https://pt.wordpress.org/plugins/document-generator-for-openapi/#installation)
 * [Desenvolvimento](https://pt.wordpress.org/plugins/document-generator-for-openapi/#developers)

 [Suporte](https://wordpress.org/support/plugin/document-generator-for-openapi/)

## Descrição

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.

There is also a built in WP-CLI Command.

### Limitations

 * Beware that currently the generator is exposeed to anonymous users since the 
   WordPress schema endpoint is also publicly
    available. Use it at your own risk
   or disable the plugin after use.
 * 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

## Instalação

 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.
 4. Or use the integrated WP-CLI command wp openapi-generator export-file

## Avaliações

Este plugin não tem avaliações.

## Contribuidores e programadores

“Document Generator for OpenAPI” é software de código aberto. As seguintes pessoas
contribuíram para este plugin:

Contribuidores

 *   [ Schneider & Schütz GmbH ](https://profiles.wordpress.org/schneiderundschuetz/)

[Traduza o “Document Generator for OpenAPI” para o seu idioma.](https://translate.wordpress.org/projects/wp-plugins/document-generator-for-openapi)

### Interessado no desenvolvimento?

[Consulte o código](https://plugins.trac.wordpress.org/browser/document-generator-for-openapi/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/document-generator-for-openapi/),
ou subscreva o [registo de alterações](https://plugins.trac.wordpress.org/log/document-generator-for-openapi/)
por [RSS](https://plugins.trac.wordpress.org/log/document-generator-for-openapi/?limit=100&mode=stop_on_copy&format=rss).

## Registo de alterações

#### 1.1.0

 * Added WP-CLI command to export OpenAPI document via CLI (Thanks to @vnmedeiros–
   Vinícius Nunes Medeiros)

#### 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

## Metadados

 *  Versão **1.1.0**
 *  Última actualização **Há 3 anos**
 *  Instalações activas **40+**
 *  Versão do WordPress ** 5.7 ou superior **
 *  Testado até **6.2.9**
 *  Versão do PHP ** 7.0 ou superior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/document-generator-for-openapi/)
 * Etiquetas
 * [api](https://pt.wordpress.org/plugins/tags/api/)[generator](https://pt.wordpress.org/plugins/tags/generator/)
   [openapi](https://pt.wordpress.org/plugins/tags/openapi/)[rest-api](https://pt.wordpress.org/plugins/tags/rest-api/)
   [swagger](https://pt.wordpress.org/plugins/tags/swagger/)
 *  [Visualização avançada](https://pt.wordpress.org/plugins/document-generator-for-openapi/advanced/)

## Classificações

Ainda não foram submetidas avaliações.

[Your review](https://wordpress.org/support/plugin/document-generator-for-openapi/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/document-generator-for-openapi/reviews/)

## Contribuidores

 *   [ Schneider & Schütz GmbH ](https://profiles.wordpress.org/schneiderundschuetz/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/document-generator-for-openapi/)

## Doar

Gostaria de apoiar o desenvolvimento deste plugin?

 [ Fazer donativo para o plugin ](https://www.schneiderundschuetz.com/)