A simple traditional web service (1)receives a request, (2)authenticates the requesting client, then (3)deserializes the parameters, (4)executes the service (the whole point of it) then (5)serializes the result and (6)returns it to the client. Django-Gateway lets you focus in writing the code and handles the rest.
1. DG recives POST or GET requests through configurable dynamic urls (all using django's url features).
2. DG uses integrates with the django auth module by limitig access to certain specified groups.
3. DG currently supports serializing with simplejson but it should be easy to extend its capabilities to support xml, amf, and others just by implementing a serialize and deserialize method extending the Service class.
4. DG uses decorators to specify public methods and authentication parameters. A simple yet functional service class looks like this:
"""FooBar plus parameter.""
return "FooBar "+p
Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.