|
SetupRailsService
Getting Started with the Rails implementation of the Pocogese service framework.
IntroductionThe pocogese-rails project contains a Rails plugin DetailsIn order to implement your Controllers for a Rails ActionController based Service, you need to:
Examplesclass UserController < ApplicationController
pocogese :user
selection_api :getAllUsers
def getAllUsers
User.find(:all)
end
command_api :changePassword, :user_login, :old_password ,:new_password
def changePassword(user_login,old_password,new_password)
# ... stuff deleted
Reply.ok("password changed")
endFire up your rails server and already you can try out selections http://localhost:3000/user/service/getAllUsers NextGenerateFlexFromRails to create ActionScript classes for each Controller that uses Pocogese |
Sign in to add a comment