Download the PHP package php-autogen/swagger without Composer
On this page you can find all versions of the php package php-autogen/swagger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download php-autogen/swagger
More information about php-autogen/swagger
Files in php-autogen/swagger
Download php-autogen/swagger
More information about php-autogen/swagger
Files in php-autogen/swagger
Vendor php-autogen
Package swagger
Short Description Gerador de documentação de API automática com base no swagger
License MIT
Package swagger
Short Description Gerador de documentação de API automática com base no swagger
License MIT
Please rate this library. Is it a good library?
Informations about the package swagger
PHP-AUTOGEN-SWAGGER
Gerador de documentação de API automática utilizando a biblioteca darkaonline/l5-swagger
REQUISITOS
https://github.com/DarkaOnLine/L5-Swagger/wiki/Installation-&-Configuration
INSTALAÇÃO
composer require php-autogen/swagger
UTILIZAÇÃO
Passo 01:
No framework Laravel rode o comando:
php artisan gen-swagger-doc
Passo 02:
As "Rules" das "Actions" ou "Controllers" devem seguir o mesmo padrão para que funcione com exito:
public function rules()
{
return [
'password' => 'required',
'email' => 'required|string'
];
}
Passo 03:
Passo 04:
Adicione a seguinte anotação "INFO" dentro de alguma anotação criada automaticamente
* @OA\Info(title="API DOCUMENTATION", version="0.1")
*
* @OA\SecurityScheme(
* securityScheme="bearerAuth",
* type="http",
* scheme="bearer",
* bearerFormat="JWT"
* ),
*
* @OA\Security(
* security={{"bearerAuth": {}}}
* )
*
EXEMPLO:
/**
*
* @OA\Info(title="API DOCUMENTATION", version="0.1")
*
* @OA\SecurityScheme(
* securityScheme="bearerAuth",
* type="http",
* scheme="bearer",
* bearerFormat="JWT"
* ),
*
* @OA\Security(
* security={{"bearerAuth": {}}}
* )
*
* @OA\Post(
* path="/auth",
* summary="Authenticate",
* tags={"auth"},
*
* @OA\RequestBody(
* required=true,
* @OA\JsonContent(
* @OA\Property(property="password", type="required"),
* @OA\Property(property="cpf", type="required"),
*
* )
* ),
* @OA\Response(
* response="201 - Authenticate",
* description="Successful operation",
* ),
* security={{"bearerAuth": {}}},
* ),
*/
All versions of swagger with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
darkaonline/l5-swagger Version *
illuminate/support Version *
illuminate/console Version *
darkaonline/l5-swagger Version *
illuminate/support Version *
illuminate/console Version *
The package php-autogen/swagger contains the following files
Loading the files please wait ....