CMPUT404 / socialdistribution

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

Author Serializer Return Relations #160

Closed derekdowling closed 9 years ago

derekdowling commented 9 years ago

When getting data from the serializer it should return the following relation fields on successful login:

"following": []
"friends": []
"pending": []
"requests": []

Each of which is a potentially empty list of CachedAuthors. The models are already hooked up the serializers just need to be dealt with.

xkb commented 9 years ago

Another note on this, I'm expecting these fields to be always set and returned via GET /author/login and GET /author/:id

pending and following should be empty lists when GET /author/:id is on a foreign author or an author that isn't the one making the request. Does that make sense?

lanre-ade commented 9 years ago

So basically return friends, following etc only when author is requesting their own information?

xkb commented 9 years ago

friends should always be returned regardless of requester.

derekdowling commented 9 years ago

Closed by #171