Description:

Generates jsonapi controller and resource, pundit policy, model, spec and factory

Example:

rails generate endpoint Thing

This will create:
    app/controllers/things_controller.rb
    app/resources/thing_resource.rb
    app/policies/thing_policy.rb
    app/models/thing.rb
    spec/models/thing_spec.rb
    spec/factories/things.rb
    db/migrate/XXX_create_things.rb