# REST API
Store API
Here are the various things you can do with the store API
Example Request
PUT /v1/stores/
{
id: 2,
ratings: '3.141/5'
}
GET /v1/stores/5
Example Response
{
data:
[{
"gid": "ChIJiR2dTJC0RIYRabwwc2DZrzc",
"id": 5,
"latitude": 30.2205759,
"location": "710 E West Ben White Boulevard, Austin",
"longitude": -97.754621,
"name": "Walmart Supercenter",
"price_level": 1,
"ratings": 3.7
}]
}
Example Request
GET /v1/stores/2
POST /v1/stores
{
name: 'Iron Kingdom',
ratings: '5/5',
location: '1083 North Corner Drive, Austin, TX',
description: 'we sell food usually!'
phone: '(512) 211-5215',
description:
}
DELETE /v1/stores/
{
id: 3
}
Example Response
{
img: 'http://media.culturemap.com/crop/c7/5c/800x700/Whole-Foods-Market-flagship-store-in-Austin_213727.jpg',
name: "Whole Foods Market",
ratings: '4.6/5',
location: '1525 N Lamar Blvd, Austin, TX 78703',
description: 'Eco-minded chain with natural & organic grocery items, housewares & other products.',
phone: '(512) 476-1206'
}
Response Status 201:
{
data: {
uri: /v1/stores/3
}
}
Response Status 202:
{
data: {
uri: /v1/store/2
}
}
Response Status 202.