From 40f7002b2a3c35911fb6391d374da46dbb5d8556 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 8 Jul 2012 10:41:35 +0200 Subject: [PATCH] update index --- oxdata/templates/index.html | 51 +++++++++++++++---------------------- oxdata/urls.py | 1 + 2 files changed, 22 insertions(+), 30 deletions(-) diff --git a/oxdata/templates/index.html b/oxdata/templates/index.html index 326b7f4..2c15cd5 100644 --- a/oxdata/templates/index.html +++ b/oxdata/templates/index.html @@ -3,33 +3,24 @@ oxdata public services: -lookup ids: - /id/?imdb=0297884 - /id/?wikipedia=Far_from_Heaven - - { - "wikipedia_id": "Far_from_Heaven", - "impawards_id": "2002/far_from_heaven", - "title": "Far from Heaven", - "directors": [ - "Todd Haynes" - ], - "imdb_id": "0297884", - "oxdb_id": "0x0db82dc4d1cd4a118e7b87b718749030a946f4be", - "year": 2002 - } - -get posters: - /poster/?imdb=0297884 - /poster/?wikipedia=Far_from_Heaven - - { - "sitename": [ - { - "url": "/url/to/poster", - "width: 123, - "height": 123 - } - ], - } - +lookup movie data: + /get/?imdb=0297884 + /get/?wikipedia=Far_from_Heaven + { + "wikipedia.org": { + "url": "http://en.wikipedia.org/wiki/Far_from_Heaven", + "posters": [...], + "id": "Far_from_Heaven" + }, + "imdb.com": { + "title": "Far from Heaven", + "url": "http://www.imdb.com/title/tt0297884/", + "directors": [ + "Todd Haynes" + ], + "year": 2002, + "posters": [...], + "id": "0297884" + }, + ... + } diff --git a/oxdata/urls.py b/oxdata/urls.py index c826d8f..4754e40 100644 --- a/oxdata/urls.py +++ b/oxdata/urls.py @@ -23,6 +23,7 @@ urlpatterns = patterns('', (r'^poster/', include('oxdata.poster.urls')), (r'^still/$', 'oxdata.poster.views.still'), (r'^id/', include('oxdata.lookup.urls')), + (r'^get/', include('oxdata.lookup.urls')), (r'^robots.txt$', serve_static_file, { 'location': os.path.join(settings.STATIC_ROOT, 'robots.txt'),