Skip to content
Derek Leung edited this page Aug 23, 2017 · 23 revisions

Beware! Work in progress.

Hypebus allows developers to add other adapters for different APIs other than using the default CUMTD API. This documentation aims to describe the standard interfaces that will be used in the Transit service.

Adapter

An adapter is an Angular service that implements TransitAdapterInterface. All data retrievals within the app will be done through Transit, which will then invoke certain TransitAdapterInterface methods from the adapter.

Basic workflow

Workflow

Note on Promises

Angular Promises are used in the majority of the code. To avoid issues, use Angular's $q instead of ES6+ Promises or any other then-able objects.

Clone this wiki locally