CMPUT404 / socialdistribution

A distributed social network
http://socshizzle.divshot.io
Apache License 2.0
0 stars 2 forks source link

Get Friends /friends/:id is still busted #176

Closed derekdowling closed 9 years ago

derekdowling commented 9 years ago

The route for /friends/:id is still not up to date with the spec. It needs to be updated. Should take a list of author ids to test against, and return the list of uuids that are friends.

mraypold commented 9 years ago

I'm not seeing a problem here.

Example request

{u'query': u'friends', 
 u'author': u'42041abfb35445358f1750760f816602', 
 u'authors': [u'aca32afd9d214489a9a22a9144f02de0', u'f08fe501d04a4c9195023de86426d04d', u'ab619e7aa51a49c3a3b46f3e53897c59']
}

Example Response

{"query":"friends",
 "author":"42041abfb35445358f1750760f816602",
 "friends":["aca32afd9d214489a9a22a9144f02de0","f08fe501d04a4c9195023de86426d04d"]
}
derekdowling commented 9 years ago

False allarm. Just tired.