- 1.0.0 (0)
- 1.1.6 (0)
- 1.2.6 (0)
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
Web service invocation scaffolding provides a way to quickly invoke web service methods in a controller. The generated scaffold actions have default views to let you enter the method parameters and view the results.
Example:
class ApiController < ActionController web_service_scaffold :invoke end
This example generates an invoke action in the ApiController that you can navigate to from your browser, select the API method, enter its parameters, and perform the invocation.
If you want to customize the default views, create the following views in "app/views":
- action_name/methods.rhtml
- action_name/parameters.rhtml
- action_name/result.rhtml
- action_name/layout.rhtml
Where action_name is the name of the action you gave to ClassMethods#web_service_scaffold.
You can use the default views in RAILS_DIR/lib/action_web_service/templates/scaffolds as a guide.