forked from beLocalVictoria/beLocal
-
Notifications
You must be signed in to change notification settings - Fork 0
Public REST API
Carly Lebeuf edited this page Jan 15, 2015
·
1 revision
beLocal utilizes a REST API to interface between the database server and the client. This page contains the REST endpoints available for public use. The live API is accessible from https://belocalvictoria.me/api/<endpointURL>
. If you are interested in using any of our other endpoints, please contact us at belocalvictoria@gmail.com
Description: Return a list of all markets currently listed on beLocalVictoria.me
Request Types: GET
URL: /api/public/markets/
Response format:
"id":53,
"address":{
"id":55,
"addr_line1":"1701 Douglas Street",
"city":"Victoria",
"zipcode":"V8W 0C1",
"state":"BC",
"country":"Canada",
"latitude":48.429456,
"longitude":-123.36448,
"hours":[
{
"weekday":3,
"from_hour":"11:00AM",
"to_hour":"03:00PM"
}
]
},
"name":"Victoria Public Market - Indoor Farmers' Market",
"description":"As a subset of the Victoria Public Market at the Hudson, the year-round weekly indoor farmers' market shows off some of the best local farmers and foodmakers that Victoria has to offer.",
"total_likes":3,
"is_liked":null,
"photo":{
"id":53,
"image_url":"https://belocalvictoria.me/static/media/markets/VPMI_G1eileY.jpg"
},
"webpage":"http://victoriapublicmarket.com/"
}