2017 © Pedro Peláez
 

library zf2-swagger-ui

Swagger UI module for ZF2

image

kbrabrand/zf2-swagger-ui

Swagger UI module for ZF2

  • Thursday, March 13, 2014
  • by kbrabrand
  • Repository
  • 2 Watchers
  • 5 Stars
  • 22,186 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

Swagger UI for ZF2

ZF2 module wrapping the default Swagger UI interface in a ZF2 module., (*1)

Installation

The recommended way of installing Swagger UI for ZF2 is by using composer. Add "kbrabrand/zf2-swagger-ui" : "dev-master" to the require part of your composer.json file and do a composer update in order to download the dependency and generate autoloads., (*2)

Then add the module to the modules array in your application.config.php by adding "SwaggerUI"., (*3)

And lastly you will need to make the asset folder publicly accessible. This can be done in several ways, but for simplicty you could add a symlink like this;, (*4)

cd [ZF-app-root]/public && ln -s ../vendor/kbrabrand/zf2-swagger-ui/public swagger-ui, (*5)

Configuration

There is one configurable option for the module. If you want Swagger UI to look for Swagger JSON somewhere other than /api/docs under the root of your ZF2 app, you can copy the swagger-ui.global.php.dist to your config/autoloads folder and set the docs-endpoint option to wherever you like., (*6)

Usage

After adding the module to your application config you can access Swagger UI by going to /api/swagger., (*7)

License

Swagger UI templates, images and JS files

Copyright 2011-2013 Wordnik, Inc., (*8)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0, (*9)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License., (*10)

Everything else

Copyright (c) Kristoffer Brabrand kristoffer@brabrand.no, (*11)

Licensed under the MIT License, (*12)

The Versions

13/03 2014

dev-master

9999999-dev https://github.com/kbrabrand/zf2-swagger-ui

Swagger UI module for ZF2

  Sources   Download

MIT

The Requires

 

zf2 swagger swagger-ui

13/03 2014

1.0.0

1.0.0.0 https://github.com/kbrabrand/zf2-swagger-ui

Swagger UI module for ZF2

  Sources   Download

MIT

The Requires

 

zf2 swagger swagger-ui