Skip to content

Urls

Tastypie + Django URLs

Tastypie builds up groupings of URls that are accesible via friendly named endpoints, and then combines them with django's URL routing. Please see below the different URL blocks we have configured within Tastypie.

core

which holds the core resources for our models including Visitor and Visit - these should be rarely needed as they talk directly to raw tables.

config

which is the main block and holds all of our resources that power the account/management section in the dashboard. This includes Events, Channels, and others.

integrations

holds resources which manage ExternalAPIs, this includes things like Adwords, Facebook, etc...

report

is our biggest block and holds all of our Report resources. These all use our bespoke API class.

control

simple block to manage some resources for the controller django application. Potentially not needed anymore.

segmenter

resources that deal with the Cubed Segmenter config. This manages resources ranging from SegmenterFunction to SemgneterPattern and more.

Django URLs

Finally we have the standard Django URL array block urlpatterns which combines all the Tastypie URLs with any Django URL views. Here we have to have a few custom views that sit out side of the API end points as we need to do custom logic. This includes handling Oauth2 flows for external APIs and some bespoke functionality for accounts/users/reports.