class Api::MainApiController

This is the parent class of all API controllers. Shared functionality of all API controllers should go here.

Public Instance Methods

create() click to toggle source
# File app/controllers/api/main_api_controller.rb, line 23
def create
  render 'shared/http_status', :locals => {:code => '404', :message =>
    HttpStatusHelper::ERROR_CODE['message']['404'] }, :status => 404
end
destroy() click to toggle source
# File app/controllers/api/main_api_controller.rb, line 33
def destroy
  render 'shared/http_status', :locals => {:code => '404', :message =>
    HttpStatusHelper::ERROR_CODE['message']['404'] }, :status => 404
end
index() click to toggle source

Unless overridden by a subclass, all routes are 404’s by default

# File app/controllers/api/main_api_controller.rb, line 13
def index
  render 'shared/http_status', :locals => {:code => '404', :message =>
    HttpStatusHelper::ERROR_CODE['message']['404']}, :status => 404
end
show() click to toggle source
# File app/controllers/api/main_api_controller.rb, line 18
def show
  render 'shared/http_status', :locals => {:code => '404', :message =>
    HttpStatusHelper::ERROR_CODE['message']['404'] }, :status => 404
end
update() click to toggle source
# File app/controllers/api/main_api_controller.rb, line 28
def update
  render 'shared/http_status', :locals => {:code => '404', :message =>
    HttpStatusHelper::ERROR_CODE['message']['404'] }, :status => 404
end