django-tastypie
for RESTful API
winnu@ciheul.com
Tuesday, July 1, 14
What we’re talking about
Web Services and REST
Tastypie is so tasty!
django-tastypie in action
Tuesday, July 1, 14
@winnuayi
founder. software engineer.
based in bandung
5+ years loving python!
Tuesday, July 1, 14
Web Services
Tuesday, July 1, 14
REpresentational State Transfer
Software architecture style. Not protocol.
HTTP Methods to access resources.
Serialization...
API Example
GET /statuses/home_timeline
POST /statuses/retweet/[tweet_id]
GET /users/[user_id]/checkins
POST /venues/add
#...
django-tastypie
Supports Django ORM and non-ORM
http://tastypieapi.org
A REST framework for Django.
Tuesday, July 1, 14
Advanced Features
Serialization
Authentication
Authorization
Caching
Throttling
Validation
GeoDjango
Tuesday, July 1, 14
Installation
$ pip install django-tastypie
# settings.py
INSTALLED_APPS = (
...
‘tastypie’,
)
Tuesday, July 1, 14
django-tastypie
in action
Tuesday, July 1, 14
another prototype
using django-tastypie
(half-baked!)
Tuesday, July 1, 14
Thanks! :)
Q & A
Tuesday, July 1, 14
Upcoming SlideShare
Loading in …5
×

django-tastypie for RESTful

726 views

Published on

Presenting a talk in Indonesia Python Community (www.python.or.id).

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
726
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
10
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

django-tastypie for RESTful

  1. 1. django-tastypie for RESTful API winnu@ciheul.com Tuesday, July 1, 14
  2. 2. What we’re talking about Web Services and REST Tastypie is so tasty! django-tastypie in action Tuesday, July 1, 14
  3. 3. @winnuayi founder. software engineer. based in bandung 5+ years loving python! Tuesday, July 1, 14
  4. 4. Web Services Tuesday, July 1, 14
  5. 5. REpresentational State Transfer Software architecture style. Not protocol. HTTP Methods to access resources. Serialization: XML, JSON, YAML, and so on. Learning curve is easier than... hmm... SOAP GET. POST. PUT. DELETE Tuesday, July 1, 14
  6. 6. API Example GET /statuses/home_timeline POST /statuses/retweet/[tweet_id] GET /users/[user_id]/checkins POST /venues/add # Twitter API # Foursquare API Tuesday, July 1, 14
  7. 7. django-tastypie Supports Django ORM and non-ORM http://tastypieapi.org A REST framework for Django. Tuesday, July 1, 14
  8. 8. Advanced Features Serialization Authentication Authorization Caching Throttling Validation GeoDjango Tuesday, July 1, 14
  9. 9. Installation $ pip install django-tastypie # settings.py INSTALLED_APPS = ( ... ‘tastypie’, ) Tuesday, July 1, 14
  10. 10. django-tastypie in action Tuesday, July 1, 14
  11. 11. another prototype using django-tastypie (half-baked!) Tuesday, July 1, 14
  12. 12. Thanks! :) Q & A Tuesday, July 1, 14

×