GithubHelp home page GithubHelp logo

dheia / oc-apitoolbox-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from planetadeleste/oc-apitoolbox-plugin

0.0 0.0 0.0 67 KB

Base toolbox plugin for Api Shopaholic plugins

License: MIT License

PHP 100.00%

oc-apitoolbox-plugin's Introduction

API Toolbox

Base toolbox plugin for Api Lovata.Shopaholic plugins

Dependencies

This plugin depends on:

Installation

To install from the repository, clone it into plugins/planetadeleste/apitoolbox and then run composer update from your project root in order to pull in the dependencies.

To install it with Composer, run composer require oc-apitoolbox-plugin from your project root.

Documentation

Usage

Coming soon

Events

Coming soon

Console commands

Create a new Api controller class Make a new controller for api toolbox. New file will be located in $author/$plugin/controllers/api/$controllerName.php Command: apitoolbox:create:controller Arguments:

Name Required Description
plugin true The name of the plugin to create. Eg: RainLab.Blog
controller true The name of the controller to create. Eg: Posts

Options:

Name Value Description
force NONE Overwrite existing files with generated ones.
model String (optional) The name of the model. Eg: Post

Create a new Api resource elements Make new files for api resource controller. New files will be located in

$author/$plugin/classes/resource/$model/IndexCollection.php
$author/$plugin/classes/resource/$model/ListCollection.php
$author/$plugin/classes/resource/$model/ItemResource.php
$author/$plugin/classes/resource/$model/ShowResource.php

Command: apitoolbox:create:resource Arguments:

Name Required Description
plugin true The name of the plugin to create. Eg: RainLab.Blog
expansion_plugin true The name of the other plugin. Eg: RainLab.Blog
model true The name of the model to create. Eg: Product

Options:

Name Value Description
force NONE Overwrite existing files with generated ones.
add-images NONE Add images relation.
add-preview-image NONE Add preview_image relation.

oc-apitoolbox-plugin's People

Contributors

alvaro-canepa avatar octapopa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.