allow json retrieval
Reported by Guilherme Silveira | May 31st, 2010 @ 07:35 PM | in upcoming release
Depends on task 1
By doing
resource = Restfulie.at('entryuri').get
Where the resource is an application/json, text/json as, i.e:
{"item":{"name":"product", "price":2}}
resource.item.name # product
resource.item.price # 2
Try using the most important xml unmarshaller in python, in a way it can be changed later:
The get method will retrieve the result, check that "raw" was not invoked, look the Content-type header, and according to its result, using a registering hash, map to a XmlUnmarshaller
Comments and changes to this ticket
-
Rebeca Motta August 23rd, 2010 @ 03:54 PM
- State changed from new to open
- Assigned user set to Rebeca Motta
- Milestone order changed from 0 to 0
-
Rodrigo Manhães August 30th, 2010 @ 02:23 AM
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
A python port of restfulie