--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Attaches ActionWebService API <tt>definition</tt> to the calling class.
- !ruby/struct:SM::Flow::P 
  body: Action Controllers can have a default associated API, removing the need to call this method if you follow the Action Web Service naming conventions.
- !ruby/struct:SM::Flow::P 
  body: A controller with a class name of GoogleSearchController will implicitly load <tt>app/apis/google_search_api.rb</tt>, and expect the API definition class to be named <tt>GoogleSearchAPI</tt> or <tt>GoogleSearchApi</tt>.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Service class example
- !ruby/struct:SM::Flow::VERB 
  body: "  class MyService &lt; ActionWebService::Base\n    web_service_api MyAPI\n  end\n\n  class MyAPI &lt; ActionWebService::API::Base\n    ...\n  end\n"
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Controller class example
- !ruby/struct:SM::Flow::VERB 
  body: "  class MyController &lt; ActionController::Base\n    web_service_api MyAPI\n  end\n\n  class MyAPI &lt; ActionWebService::API::Base\n    ...\n  end\n"
full_name: ActionWebService::Container::Direct::ClassMethods#web_service_api
is_singleton: false
name: web_service_api
params: (definition=nil)
visibility: public
