Checkout of Instiki Trunk 1/21/2007.
This commit is contained in:
commit
69b62b6f33
1138 changed files with 139586 additions and 0 deletions
16
vendor/rails/actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb
vendored
Normal file
16
vendor/rails/actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
#
|
||||
# example controller implementing both blogger and metaWeblog APIs
|
||||
# in a way that should be compatible with clients supporting both/either.
|
||||
#
|
||||
# test by pointing your client at http://URL/xmlrpc/api
|
||||
#
|
||||
|
||||
require 'meta_weblog_service'
|
||||
require 'blogger_service'
|
||||
|
||||
class XmlrpcController < ApplicationController
|
||||
web_service_dispatching_mode :layered
|
||||
|
||||
web_service :metaWeblog, MetaWeblogService.new
|
||||
web_service :blogger, BloggerService.new
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue