module TCal::V3API

Overview

Modules for fetching JSON:API data from the MBTA's V3 API. See also the API reference.

Defined in:

t_cal/v3_api.cr

Macro Summary

Macro Detail

macro def_endpoint(path, resource, params = {} of String => String) #

Defines a self.all! method that calls a V3 API "index" endpoint.

path is the absolute path of the endpoint. resource is the class for deserializing resource instances. params are extra parameters that should be added to all requests.


[View source]