HDFFA Demo API v1 routes

Categories

Categories index

/api/v1/category_groups: Returns categories nested under their parent category groups.


Params

Limits categories returned to those associated with either businesses or products.


Regions

Regions index

/api/v1/regions: Returns each business region


Businesses

Business index

/api/v1/businesses: Returns list of businesses with optional filters


Params

Business address is within the given bounding box

Business has given type

Business is tagged with all the given categories

Business has a current coupon

Businesses include and are sorted by distance from given point (in miles)

Business address is within the given region

Business attributes match against free text search


Business detail

/api/v1/businesses/:slug:: Returns detailed business profile


Params

Business will include distance from given point (in miles)


#hdffa #hdffa-demo