Class: Jsapi::Controller::Base

Inherits:
ActionController::API
  • Object
show all
Includes:
Actions, Methods, DSL
Defined in:
lib/jsapi/controller/base.rb

Overview

The base API controller class.

A minimal API controller responding with “Hello world” looks like:

class FooController < Jsapi::Controller::Base
  api_operation do
    response type: 'string'
  end

  api_action { 'Hello world' }

Method Summary

Methods included from Methods

#api_definitions, #api_params, #api_response, #bang, included

Methods included from DSL

included

Methods included from Actions

included