intranet.apps.api package

Submodules

intranet.apps.api.authentication module

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

Bases: BasicAuthentication

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

Authenticate the userid and password.

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

Bases: SessionAuthentication

enforce_csrf(request)[source]

intranet.apps.api.tests module

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

Bases: 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.

Use of the Ion API is subject to the TJHSST Intranet API and OAuth Acceptable Use Policy, which can be found at https://ion.tjhsst.edu/docs/api-oauth-aup. Activity inconsistent with the AUP may result in revocation of API and/or OAuth access. All API activity is logged and monitored, and may be used to identify and investigate violations of the AUP.

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

Module contents