update index

This commit is contained in:
j 2012-07-08 10:41:35 +02:00
parent 9221b3ea92
commit 40f7002b2a
2 changed files with 22 additions and 30 deletions

View file

@ -3,33 +3,24 @@ oxdata
public services: public services:
lookup ids: lookup movie data:
/id/?imdb=0297884 /get/?imdb=0297884
/id/?wikipedia=Far_from_Heaven /get/?wikipedia=Far_from_Heaven
{ {
"wikipedia_id": "Far_from_Heaven", "wikipedia.org": {
"impawards_id": "2002/far_from_heaven", "url": "http://en.wikipedia.org/wiki/Far_from_Heaven",
"posters": [...],
"id": "Far_from_Heaven"
},
"imdb.com": {
"title": "Far from Heaven", "title": "Far from Heaven",
"url": "http://www.imdb.com/title/tt0297884/",
"directors": [ "directors": [
"Todd Haynes" "Todd Haynes"
], ],
"imdb_id": "0297884", "year": 2002,
"oxdb_id": "0x0db82dc4d1cd4a118e7b87b718749030a946f4be", "posters": [...],
"year": 2002 "id": "0297884"
},
...
} }
get posters:
/poster/?imdb=0297884
/poster/?wikipedia=Far_from_Heaven
{
"sitename": [
{
"url": "/url/to/poster",
"width: 123,
"height": 123
}
],
}

View file

@ -23,6 +23,7 @@ urlpatterns = patterns('',
(r'^poster/', include('oxdata.poster.urls')), (r'^poster/', include('oxdata.poster.urls')),
(r'^still/$', 'oxdata.poster.views.still'), (r'^still/$', 'oxdata.poster.views.still'),
(r'^id/', include('oxdata.lookup.urls')), (r'^id/', include('oxdata.lookup.urls')),
(r'^get/', include('oxdata.lookup.urls')),
(r'^robots.txt$', serve_static_file, { (r'^robots.txt$', serve_static_file, {
'location': os.path.join(settings.STATIC_ROOT, 'robots.txt'), 'location': os.path.join(settings.STATIC_ROOT, 'robots.txt'),