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.org": {
"wikipedia_id": "Far_from_Heaven", "url": "http://en.wikipedia.org/wiki/Far_from_Heaven",
"impawards_id": "2002/far_from_heaven", "posters": [...],
"title": "Far from Heaven", "id": "Far_from_Heaven"
"directors": [ },
"Todd Haynes" "imdb.com": {
], "title": "Far from Heaven",
"imdb_id": "0297884", "url": "http://www.imdb.com/title/tt0297884/",
"oxdb_id": "0x0db82dc4d1cd4a118e7b87b718749030a946f4be", "directors": [
"year": 2002 "Todd Haynes"
} ],
"year": 2002,
get posters: "posters": [...],
/poster/?imdb=0297884 "id": "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'),