定制 rabblerouser/api-autodoc 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rabblerouser/api-autodoc

最新稳定版本:0.1.3

Composer 安装命令:

composer require rabblerouser/api-autodoc

包简介

An automatic API documentation creation utility.

README 文档

README

An automatic api documentation generator for Laravel applications.

Quick Start

Installation

Install Through Composer

You can either add the package directly by firing this command

$ composer require rabblerouser/api-autodoc:*

-- or --

Add in the require key of composer.json file manually

"rabblerouser/api-autodoc": "*"

And Run the Composer update command

$ composer update

Add Service Providers (Lumen)

Add the following service providers to your bootstrap/app.php file.

$app->register(RabbleRouser\ApiAutoDoc\Providers\DocumentationServiceProvider::class);
$app->register('Irazasyed\Larasupport\Providers\ArtisanServiceProvider');

Add Service Providers (Laravel)

Add the following service providers to your config/app.php file.

'providers' => [
    // Other Service Providers
        RabbleRouser\ApiAutoDoc\Providers\DocumentationServiceProvider::class,
        'Irazasyed\Larasupport\Providers\ArtisanServiceProvider'
],

Override Doc View Templates

If you want to override the default view templates, run the artisan publish command.

$ php artisan vendor:publish

This will create a vendor/api-autodoc/views/ directory in the resources directory of your Lumen/Laravel installation. Api AutoDoc will load those templates instead of its defaults.

Usage

In your application's routes.php file, add a docCategory parameter to the route array.

Example

    $app->get('some_resource', [
        'uses' => 'App\Http\Controllers\SomeResourceController@index',
        'docCategory' => 'Some Resource'
    ]);

You can see your autogenerated API documentation by going to the /docs page of your site.

Example

    http://api.mywebservice.com/docs

License

MIT © Rabble + Rouser

统计信息

  • 总下载量: 42
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 4
  • Forks: 2
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固