Rewrite a bit the introduction text
This commit is contained in:
parent
be1d431182
commit
5f5dd7fe5e
19
README.rst
19
README.rst
@ -4,17 +4,24 @@ Web Services Made Easy
|
|||||||
Introduction
|
Introduction
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Web Service Made Easy (WSME) is a very easy way to implement webservices
|
Web Service Made Easy (WSME) simplify the writing of REST web services
|
||||||
in your python web application, and to add strong type checking to your favorite
|
by providing simple yet powerful typing which removes the need to directly
|
||||||
REST library/framework, as well as additional protocols.
|
manipulate the request and the response objects.
|
||||||
|
|
||||||
It is originally a rewrite of TGWebServices
|
WSME can work standalone or on top of your favorite python web
|
||||||
|
(micro)framework, so you can use both your prefered way of routing your REST
|
||||||
|
requests and most of the features of WSME that rely on the typing system like:
|
||||||
|
|
||||||
|
- Alternate protocols, including ones supporting batch-calls
|
||||||
|
- Easy documentation through a Sphinx_ extension
|
||||||
|
|
||||||
|
WSME is originally a rewrite of TGWebServices
|
||||||
with focus on extensibility, framework-independance and better type handling.
|
with focus on extensibility, framework-independance and better type handling.
|
||||||
|
|
||||||
How Easy ?
|
How Easy ?
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
::
|
Here is a standalone wsgi example::
|
||||||
|
|
||||||
from wsme import WSRoot, expose, validate
|
from wsme import WSRoot, expose, validate
|
||||||
|
|
||||||
@ -24,6 +31,8 @@ How Easy ?
|
|||||||
def hello(self, who=u'World'):
|
def hello(self, who=u'World'):
|
||||||
return u"Hello {0} !".format(who)
|
return u"Hello {0} !".format(who)
|
||||||
|
|
||||||
|
ws = MyService(protocols=['restjson', 'restxml', 'soap'])
|
||||||
|
application = ws.wsgiapp()
|
||||||
|
|
||||||
With this published at the ``/ws`` path of your application, you can access
|
With this published at the ``/ws`` path of your application, you can access
|
||||||
your hello function in various protocols:
|
your hello function in various protocols:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user