library laravel-pyntax-rest-api-helper
pyntax/laravel-pyntax-rest-api-helper
- Sunday, September 10, 2017
- by SahilDude89ss@gmail.com
- Repository
- 1 Watchers
- 2 Stars
- 5 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 3 Versions
- 0 % Grown
Laravel - Pyntax API Helper
This library is used to automate the processing of creating REST resource with the following verbs, (*1)
This library will create the following routes., (*2)
- GET /api/{resource}
- GET /api/{resource}/{id}
- POST /api/{resource}
- PUT /api/{resource}/{id}
- DELETE /api/{resource}/{id}
The library will use Eloquent models out of the box to create the above functionality. We wan also turn on the cache,
which can make the delivering the resource a lot faster., (*3)
Installation
- run
composer require "pyntax/laravel-pyntax-rest-api-helper":"dev-master"
- Add
\Pyntax\Providers\PyntaxApiServiceProvider::class
to config/app.php under "providers" key.
- run
php artisan:vendor publish
- By default the API route for users is configured.
- Add your more of your routes and happy coding.
License
The Pyntax API Helper is open-sourced software licensed under the MIT license., (*4)