2017 © Pedro Peláez
 

library l5-swagger-redoc

Swagger integration to Laravel 5 using the Rebilly Redoc UI.

image

imikemiller/l5-swagger-redoc

Swagger integration to Laravel 5 using the Rebilly Redoc UI.

  • Sunday, January 7, 2018
  • by imikemiller
  • Repository
  • 0 Watchers
  • 0 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 89 Forks
  • 0 Open issues
  • 32 Versions
  • 9 % Grown

The README.md

This is a fork of DarkaOnLine/L5-Swagger which is based on swagger-PHP and swagger-UI., (*1)

Instead of the stock Swagger interface this package uses the Rebilly/Redoc UI., (*2)

Installation & Usage

composer require imikemiller/l5-swagger-redoc

Register the service provider L5Swagger\L5SwaggerServiceProvider::class in the Laravel app config file config/app.php and run, (*3)

php artisan l5-swagger:publish //to publish the resources
php artisan l5-swagger:generate //to generate the doc spec json

By default the documentation will be available at http://{base_url}/api/documentation. You can configure the page title and other Swagger configuration options by editing config/l5-swagger.php., (*4)

TODO

  • Add support for configuration of the Redoc UI

Example Controller Annotations

```php <?php /** * @SWG\Swagger( * basePath="/api/v1", * schemes={"http", "https"}, * host=L5_SWAGGER_CONST_HOST, * @SWG\Info( * version="1.0.0", * title="L5 Swagger API", * description="L5 Swagger API description", * @SWG\Contact( * email="darius@matulionis.lt" * ), * ) * ) */ /** * @SWG\Get( * path="/projects", * operationId="getProjectsList", * tags={"Projects"}, * summary="Get list of projects", * description="Returns list of projects", * @SWG\Response( * response=200, * description="successful operation" * ), * @SWG\Response(response=400, description="Bad request"), * security={ * {"api_key_security_example": {}} * } * ) * * Returns list of projects */ /** * @SWG\Get( * path="/projects/{id}", * operationId="getProjectById", * tags={"Projects"}, * summary="Get project information", * description="Returns project data", * @SWG\Parameter( * name="id", * description="Project id", * required=true, * type="integer", * in="path" * ), * @SWG\Response( * response=200, * description="successful operation" * ), * @SWG\Response(response=400, description="Bad request"), * @SWG\Response(response=404, description="Resource Not Found"), * security={ * { * "oauth2_security_example": {"write:projects", "read:projects"} * } * }, * ) * */, (*5)

```, (*6)

The Versions

07/01 2018

dev-lumen-support

dev-lumen-support

Swagger integration to Laravel 5 using the Rebilly Redoc UI.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis
by Mike Miller

laravel api swagger

07/01 2018

v2.5

2.5.0.0

Swagger integration to Laravel 5 using the Rebilly Redoc UI.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis
by Mike Miller

laravel api swagger

05/10 2017

dev-master

9999999-dev

Swagger integration to Laravel 5 using the Rebilly Redoc UI.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis
by Mike Miller

laravel api swagger

12/07 2017

5.0.3

5.0.3.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

09/06 2017

5.0.2

5.0.2.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

09/06 2017

5.0.1

5.0.1.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

05/06 2017

5.0

5.0.0.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

07/02 2017

3.2.3

3.2.3.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

03/02 2017

3.x-dev

3.9999999.9999999.9999999-dev

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

03/02 2017

3.2.2

3.2.2.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

03/02 2017

4.0.1

4.0.1.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

30/01 2017

4.0.x-dev

4.0.9999999.9999999-dev

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

30/01 2017

4.0

4.0.0.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

02/12 2016

3.2.1

3.2.1.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

14/10 2016

3.2

3.2.0.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

11/08 2016

3.1.5

3.1.5.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

20/07 2016

3.1.4

3.1.4.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

30/06 2016

3.1.3

3.1.3.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

27/06 2016

3.1.2

3.1.2.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

10/06 2016

3.1.1

3.1.1.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

19/04 2016

3.1

3.1.0.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

04/04 2016

3.0.1

3.0.1.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

23/02 2016

3.0

3.0.0.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darius Matulionis

laravel api swagger

29/09 2015

2.0.x-dev

2.0.9999999.9999999-dev

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

by Darius Matulionis

laravel swagger

29/09 2015

2.1.3

2.1.3.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

by Darius Matulionis

laravel swagger

29/09 2015

2.1.2

2.1.2.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

by Darius Matulionis

laravel swagger

28/09 2015

2.1.1

2.1.1.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

by Darius Matulionis

laravel swagger

04/08 2015

2.1

2.1.0.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

by Darius Matulionis

laravel swagger

05/05 2015

1.0.x-dev

1.0.9999999.9999999-dev

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

by Darius Matulionis

laravel swagger

05/05 2015

v2.0

2.0.0.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

by Darius Matulionis

laravel swagger

05/05 2015

v0.2

0.2.0.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

by Darius Matulionis

laravel swagger

23/03 2015

v0.1

0.1.0.0

Swagger integration to Laravel 5

  Sources   Download

MIT

The Requires

 

by Darius Matulionis

laravel swagger