Git Product home page Git Product logo

siesta's Introduction

#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

siesta's People

Contributors

bil-bas avatar graingert avatar scastillo avatar sfossen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

siesta's Issues

Documentation

Hi,

Please improve the documentation, and add some examples.

Regards.

No license

Your license file is missing content.

Handle Content-Type "application/hal+json"

Hi,

By default the library handles only the "application/json" content-type. This causes the parser not working with several APIs which uses hal:

http://stateless.co/hal_specification.html

In my case, I just modified the init.py file:

if mime == 'application/json':

became:

if mime == 'application/json' or mime == 'application/hal+json':

Can you add the application/hal+json mine type ?

Thank you.

Typo in homepage

The following code from Siesta homepage doesn't work:

api.resoure(id).resource_collection().get()

I think it should be api.resource(id).resource_collection().get()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.