Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 636 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 636 Bytes

#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.resource(id).resource_collection().get()

##Other REST clients for python