gurl_o/plugins/ahmadfatoni/apigenerator
Shohrat 53ff03349f from server 2023-10-04 07:17:11 +00:00
..
controllers from server 2023-10-04 07:17:11 +00:00
helpers all 2023-07-23 10:57:06 +05:00
lang/en all 2023-07-23 10:57:06 +05:00
models all 2023-07-23 10:57:06 +05:00
template all 2023-07-23 10:57:06 +05:00
updates all 2023-07-23 10:57:06 +05:00
Plugin.php all 2023-07-23 10:57:06 +05:00
Readme.md all 2023-07-23 10:57:06 +05:00
composer.json all 2023-07-23 10:57:06 +05:00
plugin.yaml all 2023-07-23 10:57:06 +05:00
routes.php from server api settings 2023-10-03 11:42:10 +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.