intranet.apps.api package

Submodules

intranet.apps.api.authentication module

class intranet.apps.api.authentication.ApiBasicAuthentication[source]

Bases: rest_framework.authentication.BasicAuthentication

authenticate_credentials(userid, password, request=None)[source]

Authenticate the userid and password.

class intranet.apps.api.authentication.CsrfExemptSessionAuthentication[source]

Bases: rest_framework.authentication.SessionAuthentication

enforce_csrf(request)[source]

intranet.apps.api.tests module

class intranet.apps.api.tests.ApiTest(methodName='runTest')[source]

Bases: intranet.test.ion_test.IonTestCase

Tests for the api module.

get_api_eighth_block_list(query='')[source]
get_api_eighth_signup_list(query='')[source]
make_token()[source]
setUp()[source]
test_api_bus_detail()[source]
test_api_bus_list()[source]
test_api_eighth_block_list()[source]
test_api_eighth_signup_list()[source]
test_api_root()[source]
test_api_schedule_detail()[source]
test_get_announcements()[source]
test_get_emerg()[source]
test_get_profile()[source]
test_no_credentials_read()[source]
test_oauth_client_credentials_read()[source]
test_oauth_client_credentials_read_anonymous()[source]
test_oauth_read()[source]
test_oauth_write()[source]

intranet.apps.api.urls module

intranet.apps.api.utils module

intranet.apps.api.utils.custom_exception_handler(exc, context)[source]

intranet.apps.api.views module

intranet.apps.api.views.api_root(self, request, *args, **kwargs)[source]

Welcome to the Ion API!

Documentation is below. <pk> refers to the unique id of a certain object - this is shown as “id” in most lists and references.

The general form of the api link (with /api/ assumed to be prepended) is shown, along with an example URL.

All of the API methods, except for those relating to the Bell Schedule, require authentication.

intranet.apps.api.views.perma_reverse(request, view, *args, **kwargs)[source]

Module contents