README.md in shapewear-0.0.1 vs README.md in shapewear-0.0.2

- old
+ new

@@ -1,10 +1,15 @@ shapewear [![Build Status](https://secure.travis-ci.org/elementar/shapewear.png)](http://travis-ci.org/elementar/shapewear) ========= Make your fat service look skinny. +Work in Progress +---------------- + +This gem is still in early development, and it's not yet yet ready for use. Any contribution and feedback is welcome. + Installation ------------ Shapewear is available through [Rubygems](http://rubygems.org/gems/shapewear) and can be installed via: @@ -19,17 +24,27 @@ ``` ruby require "shapewear" class MyFirstService - include Shapewear::DSL + include Shapewear + wsdl_namespace 'http://services.example.com/v1' + schema_namespace 'http://schemas.example.com/v1' + + operation :hello, :parameters => [[:name, String]], :returns => String def hello(name) "hello, #{name}" end + operation :sum, :parameters => [[:x, Fixnum], [:y, Fixnum]], :returns => Fixnum def sum(x, y) x + y + end + + operation :get_user_info, :parameters => [[:email, String]], :returns => { :name => String, :birthday => DateTime } + def get_user_info(email) + User.find_by_email(email) end end ``` Then bind to your web application in a non-intrusive way.