codecycler / api
API module for October CMS
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 0
Type:october-module
Requires
- composer/installers: ~1.0
- laravel/passport: 9.*
This package is auto-updated.
Last update: 2024-11-12 21:38:44 UTC
README
Installation
Require with composer
composer require codecycler/api
Run migrations & install Passport
php artisan api:install
Basics
Registering resources
You can register resources for your plugin by using the registerApiResources
method in your Plugin.php
file.
public function registerApiResources() { return [ 'blogposts' => 'RainLab\Blog\Models\Post', ]; }
Sponsored by Codecycler (codecycler.com)