weburnit/swagger-generator

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

0.1.1 2017-02-27 08:19 UTC

This package is auto-updated.

Last update: 2021-10-01 00:08:49 UTC


README

#Install

namespace YourNamespace\Console;

use Laravel\Lumen\Console\Kernel as ConsoleKernel;
use Weburnit\Console\Commands\SwaggerModelGenerator;
/**
 * Class Kernel
 */
class Kernel extends ConsoleKernel
{

    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        SwaggerModelGenerator::class,
        ...
    ];
}

#Usage

  • Be able to create Class, Class Description
  • Generate every single field/property and data type per field reflects Laravel Validation.
  • In case field has multiple validations like "platformCode" => "string|max:20", first data type must be max. Then command line will ask you value of max(in this case is 20). Then it will ask you type of value as string in this case. Demo