mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Added the other OAuth endpoints
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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),
|
||||
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user