frias0 / leet_chat

0 stars 0 forks source link

API documentation #11

Open anhallbe opened 9 years ago

anhallbe commented 9 years ago

...we need it.

Methods, parameters, protocols.

anhallbe commented 9 years ago

e.g: http get /user/1 --> { whatever:ishere } //Used to list info about the user 1, specify JSON parameters (e.g. get /user {id:1} ) http get /user/1/friends --> [{name:n, id:x}, {name:m, id:y}] // get a list of friends http post /user/1/friends --> {status:ok, response:{thenew:friend}} // add a new friend http get /user/1/groups ............. http delete /user/1/conversation

etc.