lbmadesia / api-generator
To create a api with all related files like controller, route etc with a simple restapi.
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
README
A Laravel api-generator Package for Laravel AdminPanel < https://github.com/lbmadesia/laravel-adminpanel >
License
This api-generator is open-sourced software licensed under the MIT license
Official Documentation
To get started with api-generator, use Composer to add the package to your project's dependencies:
composer require lbmadesia/api-generator
Since you would be having work of this api-generator, while creating your project, hence only require it in the dev environment.
Configuration
After installing the Generator, register the Lbmadesia\ApiGenerator\Provider\ApiCrudGeneratorServiceProvider
in your config/app.php
configuration file:
'providers' => [ // Other service providers... Lbmadesia\ApiGenerator\Provider\ApiCrudGeneratorServiceProvider::class ],
you need to run below command for publish migration, view and config file:
php artisan vendor:publish --tag=api-generator
and you can get the title "Api Management" from package's translation file by using:
{{ trans('generator::menus.apis.management') }}
Link Api management with route
{{ route('admin.apis.index') }}
Contribute
You can contribute to this project, by just taking fork of it. We are open for suggestion and PRs. If you have any new suggestions or anything for that matter, contact me at lbmadesia@gmail.com