Package Data | |
---|---|
Maintainer Username: | slampenny |
Maintainer Contact: | jordan@jordanlapp.com (jlapp) |
Package Create Date: | 2014-07-03 |
Package Last Update: | 2018-12-07 |
Language: | JavaScript |
License: | MIT |
Last Refreshed: | 2024-12-15 15:10:34 |
Package Statistics | |
---|---|
Total Downloads: | 845,228 |
Monthly Downloads: | 8,228 |
Daily Downloads: | 92 |
Total Stars: | 492 |
Total Watchers: | 18 |
Total Forks: | 175 |
Total Open Issues: | 33 |
This branch uses Swagger-spec 2.0 and Swagger-php 2.0. This branch also updates the Swagger-ui to version 2.1.1.
The Swagger-ui was changed to allow inserting the OAuth 2 parameters (client_id
, client_secret
, realm
and appName
) directly in the ui.
You can also pass these values in the url in the URL, like so:
http://api.appcursos.com/api-docs?client_id=my-client-id&client_secret=my-client-secret&realm=my-realm&appName=my-app-name
To use Swaggervel for Laravel 4.2, use the version 1.0 branch (https://github.com/slampenny/Swaggervel/tree/1.0)
Swagger for Laravel
This package combines Swagger-php and swagger-ui into one Laravel-friendly package.
When you run your app in debug mode, Swaggervel will scan your app folder (or any folder that is set under the "app-dir" variable in the packages config), generate swagger json files and deposit them to the doc-dir folder (default is /docs
). Files are then served by swagger-ui under the api-docs director.
Jlapp\Swaggervel\SwaggervelServiceProvider
to your providers array in app/config/app.php
above your route provider, to avoid any catch-all routesphp artisan vendor:publish
to push swagger-ui to your public folder.Uncomment the "viewHeaders" option in the Config file to add headers to your view.
Swagger for Laravel
This package combines Swagger-php and swagger-ui into one Laravel-friendly package.
When you run your app in debug mode, Swaggervel will scan your app folder (or any folder that is set under the "app-dir" variable in the packages config), generate swagger json files and deposit them to the doc-dir folder (default is /docs
). Files are then served by swagger-ui under the api-docs director.
Jlapp\Swaggervel\SwaggervelServiceProvider
to your providers array in app/config/app.php
above your routes provider (to avoid catch all routes)php artisan vendor:publish
to push config files to your app folder.Uncomment the "viewHeaders" option in the Config file to add headers to your view.
The actual Swagger spec is beyond the scope of this package. All Swaggervel does is package up swagger-php and swagger-ui in a Laravel-friendly fashion, and tries to make it easy to serve. For info on how to use swagger-php look here. For good examples of swagger-php in action look here.