DarkaOnLine / L5-Swagger

OpenApi or Swagger integration to Laravel
https://github.com/DarkaOnLine/L5-Swagger
MIT License
2.64k stars 394 forks source link

l5-swagger:generate not generate files #481

Closed ceresaconsultoria closed 2 years ago

ceresaconsultoria commented 2 years ago

Description:

After execute command $ php artisan l5-swagger:generate return Regenerating docs default but files not generate and page show Failed to load API definition.

Fetch error Not Found http://192.168.5.170:8000/docs/api-docs.json

Steps To Reproduce:

execute command: php artisan l5-swagger:generate

murilolivorato commented 2 years ago

the same to me . it is gerating this -

{
    "openapi": "3.0.0",
    "info": {
        "title": "L5 OpenApi",
        "description": "L5 Swagger OpenApi description",
        "contact": {
            "email": "darius@matulionis.lt"
        },
        "license": {
            "name": "Apache 2.0",
            "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
        },
        "version": "1.0.0"
    },
    "paths": {
        "/": {
            "get": {
                "description": "Home page",
                "responses": {
                    "default": {
                        "description": "Welcome page"
                    }
                }
            }
        }
    }
}
ceresaconsultoria commented 2 years ago

Hi

The problem of not generating documentation was related with memory limit configured on php.ini

I increased configuration and documentation was generate sucessful

Thanks