url design for relationship

35 views
Skip to first unread message

张 斌

unread,
Apr 18, 2012, 2:18:15 AM4/18/12
to API Craft
my design:

/people/people_id/followers/my_people_id

GET for get relationship(return: {'is_following': true})

DELETE for remove relationship

/people/people_id/followers

GET for get people list followed this people(return {people meta
list})

POST for follow people(retrun: {'is_following': true})

is this ok?

or other better ideas, thx
Reply all
Reply to author
Forward
0 new messages