removing log dir from .gitignore
[monkeycharger.git] / vendor / rails / railties / lib / rails_generator / generators / components / web_service / USAGE
blob1b9192f7b128b23bb23503ca86fa31235b2b4906
1 Description:
2     Stubs out the controller and API for a new web service using the deprecated
3     Action Web Service framework. Pass the web service name, either CamelCased
4     or under_scored, and a list of API methods as arguments. To create a web
5     service within a module, use a path like 'module_name/web_service_name'.
7     This generates a controller in app/controllers, an API definition
8     in app/apis, and functional tests in test/functional.
10 Example:
11     `./script/generate web_service User add edit list remove`
13     creates the User controller, API, and functional test:
14         Controller: app/controllers/user_controller.rb
15         API:        app/apis/user_api.rb
16         Test:       test/functional/user_api_test.rb
18 Modules Example:
19     `./script/generate web_service 'api/registration' register renew`
21     creates the Registration controller, API, and functional test:
22         Controller: app/controllers/api/registration_controller.rb
23         API:        app/apis/api/registration_api.rb
24         Test:       test/functional/api/registration_api_test.rb