ORIENT/plugins/ahmadfatoni/apigenerator
Kerim d65495c00f updates 18.12 2022-12-18 13:28:49 +05:00
..
controllers updates 18.12 2022-12-18 13:28:49 +05:00
helpers image resize, api 2021-04-08 17:38:39 +05:00
lang/en image resize, api 2021-04-08 17:38:39 +05:00
models image resize, api 2021-04-08 17:38:39 +05:00
template route version 208 2021-12-08 21:18:23 +05:00
updates image resize, api 2021-04-08 17:38:39 +05:00
Plugin.php image resize, api 2021-04-08 17:38:39 +05:00
Readme.md image resize, api 2021-04-08 17:38:39 +05:00
plugin.yaml route version 208 2021-12-08 21:18:23 +05:00
routes.php from server afisha api 2022-12-16 07:03:18 +00:00

Readme.md

API Generator

October CMS plugin to build RESTful APIs.

Features

  • Auto generate routes
  • Auto Generate Controller (CRUD)
  • Support relationship restful API

Install

composer require AhmadFatoni.ApiGenerator

Usage

Form

  • API Name : Name of your API module
  • Base Endpoint : Base endpoint of your API, ex : api/v1/modulename
  • Short Description : Describe your API
  • Model : select model that will be created API
  • Custom Condition : Build customer response using JSON modeling

Custom Condition Example

{
    'fillable': 'id,title,content',
    'relation': [{
        'name': 'user',
        'fillable': 'id,first_name'
    }, {
        'name': 'categories',
        'fillable': 'id,name
    }]
}
  • please replace single quote with quote

Contribute

Pull Requests accepted.

Contact

You can communicate with me using linkedin

License

The OctoberCMS platform is open-sourced software licensed under the MIT license.