From c37c291cf2bc2b7aef0a246fbf278b68aceca462 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 29 Jun 2011 11:57:24 +0100 Subject: [PATCH] Added the other OAuth endpoints --- app/api/handlers/oauth.py | 2 +- app/api/urls.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/api/handlers/oauth.py b/app/api/handlers/oauth.py index 9a56d1f..27e121d 100644 --- a/app/api/handlers/oauth.py +++ b/app/api/handlers/oauth.py @@ -107,7 +107,7 @@ class OAuthOpTimerHandler(BaseHandler): return {'ops': events, 'doc_time': cached_doc.time_retrieved, 'cache_until': cached_doc.cached_until, 'current_time': datetime.utcnow() } -class CharacterHandler(BaseHandler): +class OAuthCharacterHandler(BaseHandler): allowed_methods = ('GET') fields = ('id', 'name', ('corporation', ('id', 'name', ('alliance', ('id', 'name')))), 'corporation_date', 'balance', 'total_sp', 'security_status', 'director', 'skillset') diff --git a/app/api/urls.py b/app/api/urls.py index 89c938e..3c41903 100755 --- a/app/api/urls.py +++ b/app/api/urls.py @@ -54,9 +54,14 @@ urlpatterns += patterns('api.views', ) oauth_optimer_resource = Resource(handler=OAuthOpTimerHandler, **oauth) +oauth_eveapi_resource = Resource(handler=OAuthOpTimerHandler, **oauth) +oauth_chars_resource = Resource(handler=OAuthCharacterHandler, **oauth) # API urlpatterns += patterns('', url(r'^oauth/optimer/$', oauth_optimer_resource), + url(r'^oauth/eveapi/$', oauth_eveapi_resource), + url(r'^oauth/character/$', oauth_chars_resource), + )