http://illy.kubbing.com:3000/friends
Backend for the third homework. Note: there are no access rights implemented, please update you data only :)
Same as the second homework (+ rmagick gem).
Array of friends.
[
{
"id":1,
"created_at":"2012-10-24T14:03:27Z",
"name":"Kubbing",
"status":"\u2026totally awesome",
"gender":"M",
"image":{
"url":"/uploads/friend/image/2/IMG_3273.jpg",
"thumbnail":{
"url":"/uploads/friend/image/2/thumbnail_IMG_3273.jpg"
}
}
]
Detailed info of a friend.
{
"id":1,
"created_at":"2012-10-24T14:03:27Z",
"name":"Kubbing",
"status":"\u2026totally awesome",
"gender":"M",
"image":{
"url":"/uploads/friend/image/2/IMG_3273.jpg",
"thumbnail":{
"url":"/uploads/friend/image/2/thumbnail_IMG_3273.jpg"
}
}
Creates new item at the server.
{
"friend[name]":"jmeno",
"friend[status]":"status",
"friend[latitude]":"10",
"friend[longitude]":"20",
"friend[gender]":"M",
}
{
"created_at":"2012-11-18T10:36:24Z",
"gender":"",
"id":5,
"image":{
"url":null,
"thumbnail":
{
"url":null
}
},
"latitude":null,
"longitude":null,
"name":"super jmeno",
"status":"",
"updated_at":"2012-11-18T10:36:24Z"
}
Updates an friend at the server.
{
"item[status]":"mam se dobre",
"item[latitude]":"50",
"item[longitude]":"15.4567",
}
updates friend's image
Deletes an item at the server.