Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Sit back, relax and enjoy your REST client for python
Python Shell
branch: master

Merge pull request #4 from sfossen/patch-1

charset and the space after the ; are optional.
latest commit 63f5233433
Sebastian Castillo authored

README.md

Python Siesta

 from siesta import API
 api = API('http://myrestful/api/v1')

 # GET /resource
 api.resource.get()
 # GET /resource (with accept header = application/json)
 api.resource.get(format='json')
 # GET /resource?attr=value
 api.resource.get(attr=value)

 # POST /resource
 api.resource.post(attr=value, attr2=value2, ...)
 # GET /resource/id/resource_collection
 api.resoure(id).resource_collection().get()

Other REST clients for python

Something went wrong with that request. Please try again.