Sha256: 6a347893a5fa53fdc3f959233630e8890370692b50d8bb8837834a9d3753d897

Contents?: true

Size: 524 Bytes

Versions: 3

Compression:

Stored size: 524 Bytes

Contents

Description:
    Creates API controller and action(s) to your application.

Example:
    rails generate lina:api Posts index show

    This will create:
        create  app/controllers/posts_controller.rb
         route  get 'posts/show'
         route  get 'posts/index'
        invoke  test_unit
        create    test/controllers/posts_controller_test.rb
        invoke  jbuilder
        create    app/views/posts
        create    app/views/posts/index.json.jbuilder
        create    app/views/posts/show.json.jbuilder

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lina-0.0.4 lib/generators/lina/api/USAGE
lina-0.0.3 lib/generators/lina/api/USAGE
lina-0.0.2 lib/generators/lina/api/USAGE