Laravel-apidoc-generator: Generate API result Delete all data in database

Created on 6 Apr 2018  路  3Comments  路  Source: mpociot/laravel-apidoc-generator

On exec code
php artisan api:generate --routePrefix="api/v1/*"

it delete all database.

Most helpful comment

Would one suggestion be to run it in a test database?

All 3 comments

I think without --noResponseCalls it tries to build a request to each endpoint to build the example responses. If any endpoint you have would clear out a table it would trigger that. But that is just a guess.

I do not have any method that delete the entire database to be delete but it deletes only 1 item by id.

Would one suggestion be to run it in a test database?

Was this page helpful?
0 / 5 - 0 ratings