Laravel Swagger Versions Save

Auto generates the swagger documentation of a laravel project based on best practices and simple assumptions

v0.6.4

3 years ago

Fixed

  • Composer.json version of phpdocumentor/reflection-docblock/phpdocumentor/reflection-common clashing with laravel's dependencies

v0.7.0-alpha

4 years ago

Added

  • Added schema definitions for models (Defined on @model annotation on methods or controller).
  • Parsing on model relationships (if methods have a Relationship return type hint)
  • Example data on fields (if model has a factory associated with them)
  • Added responses based on routes http methods, @throws annotations and auth middleware.
  • Added support to JWT authentication.
  • Added Swagger UI with docs.
  • Added docker environment for development support.
  • Automatically will generate docs on public path depending on config, /docs route by default.

Changed

  • Changed to get middlewares from controller too, instead of only from routes.
  • Changed command usage to not print on console or set in file.

v0.6.3

4 years ago

Fixed

  • Bug introduced in last release where params weren't getting added

v0.6.2

4 years ago

Fixed

  • Fix for calling __toString() on a ReflectionType

v0.6.1

4 years ago

Fixed

  • Fixed bug when getting enum rules that broke when the rule was a closure or an object that did not implement __toString

v0.6.0

4 years ago

Added

  • Support for Laravel 6
  • Support for PHPUnit 8

v0.5.2

4 years ago

Fixed

  • Fixed bug in generatePath where it would error out getting summary/description if route was a Closure

v0.5.1

4 years ago

Fixed

  • Fixed getting getAction for users with a laravel version older than 5.5, the optional key wasn't a parameter in previous versions

v0.5.0

4 years ago

Changed

  • parseDescriptions config option was changed to parseDocBlock
  • parseDocBlock now takes the first part of your docBlock as the summary if parseDocBlock is true, it will default to empty if false.
  • parseDocBlock will take the rest of the docBlock (other than annotations) as the route's description.
  • depracated will now default to false if parseDocBlock is false

v0.4.0

4 years ago

Added

  • Ability to parse docBlock comments and add these to the route's description
  • Deprecated key depending if there is a @deprecated annotation in the docBlock
  • parseDescriptions option that will let you turn off the docBlock parsing and will add an empty description

Changed

  • {REQUEST_METHOD} {PATH} was previously stored in the route's description, this has been moved to the route's summary key