scastillo / siesta

Sit back, relax and enjoy your REST client for python
scastillo.github.com/siesta
98 stars 19 forks source link

Hyphens in URLs #7

Open jstarcher opened 10 years ago

jstarcher commented 10 years ago

Great little library, but it doesn't appear to be possible to use for a resource URI of say: http://localhost/v1/foo-bar/baz correct?

HendrikF commented 9 years ago

I haven't worked with siesta before, but it appears to be relatively easy extensible via the __getitem__ magic method.

It does not look that good, but it seems to be the only way...

# GET /v1/foo-bar/baz
api.v1['foo-bar'].get()

Just an idea for future readers... :)