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

0.1.0 2021-08-12 14:14 UTC

This package is auto-updated.

Last update: 2022-08-12 16:23:26 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)