update index
This commit is contained in:
parent
9221b3ea92
commit
40f7002b2a
2 changed files with 22 additions and 30 deletions
|
@ -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"
|
||||
},
|
||||
...
|
||||
}
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue