diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-29 02:07:08 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-29 02:07:08 +0000 |
commit | 20fa105c353331eebef0843afa3d71505f7475f5 (patch) | |
tree | 0cec10dc34eda15727591e696dd2672c0c68cb83 /railties/lib/rails_generator/generators/components/web_service | |
parent | 06744bb4c5777cae45dca3b0ed4826ab14cbc558 (diff) | |
download | rails-20fa105c353331eebef0843afa3d71505f7475f5.tar.gz rails-20fa105c353331eebef0843afa3d71505f7475f5.tar.bz2 rails-20fa105c353331eebef0843afa3d71505f7475f5.zip |
Wordsmith generator USAGEs.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/web_service')
-rw-r--r-- | railties/lib/rails_generator/generators/components/web_service/USAGE | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/railties/lib/rails_generator/generators/components/web_service/USAGE b/railties/lib/rails_generator/generators/components/web_service/USAGE index d3e45b7fef..1b9192f7b1 100644 --- a/railties/lib/rails_generator/generators/components/web_service/USAGE +++ b/railties/lib/rails_generator/generators/components/web_service/USAGE @@ -1,28 +1,24 @@ Description: - The web service generator creates the controller and API definition for - a web service. + Stubs out the controller and API for a new web service using the deprecated + Action Web Service framework. Pass the web service name, either CamelCased + or under_scored, and a list of API methods as arguments. To create a web + service within a module, use a path like 'module_name/web_service_name'. - The generator takes a web service name and a list of API methods as arguments. - The web service name may be given in CamelCase or under_score and should - contain no extra suffixes. To create a web service within a - module, specify the web service name as 'module/webservice'. - - The generator creates a controller class in app/controllers, an API definition - in app/apis, and a functional test suite in test/functional. + This generates a controller in app/controllers, an API definition + in app/apis, and functional tests in test/functional. Example: - ./script/generate web_service User add edit list remove + `./script/generate web_service User add edit list remove` - User web service. + creates the User controller, API, and functional test: Controller: app/controllers/user_controller.rb API: app/apis/user_api.rb Test: test/functional/user_api_test.rb Modules Example: - ./script/generate web_service 'api/registration' register renew + `./script/generate web_service 'api/registration' register renew` - Registration web service. + creates the Registration controller, API, and functional test: Controller: app/controllers/api/registration_controller.rb API: app/apis/api/registration_api.rb Test: test/functional/api/registration_api_test.rb - |