openxtrem/oas-generator
最新稳定版本:5.0.3
Composer 安装命令:
composer require openxtrem/oas-generator
包简介
README 文档
README
About
Convert Symfony routes collection to Open Api Specifications. OAS validation with cebe/php-openapi
How to use :
$oas = new Specifications();
$oas->setVersion('1.0.0')
->setTitle('OX APIs documentation')
->setDescription('This documentation ...')
->setContact('admin', 'admin@info.fr')
->setLicense('GPL', 'https://openxtrem.com/licenses/gpl.html')
->addTag('system', 'This is a tag');
->addServer('http://lorem-ipsum.fr', 'description')
->addSecurity(
'Token', 'apiKey', 'header token', [
'in' => 'header',
'name' => 'X-OXAPI-KEY',
])
->addSchema(new Scheam('lorem', 'object'));
$routes = new RouteCollection(); // your routes
$generator = new Generator($oas, $routes);
$documentation = $generator->generate();
How to tests ?
vendor/bin/phpunit -c phpunit.xml
Need help ?
https://www.openapis.org/
统计信息
- 总下载量: 36.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2022-10-12