This repository has been archived by the owner on Mar 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Phase II: A Simple HTTPS Server
Kumin In edited this page Oct 21, 2016
·
23 revisions
GET /api/v1/login
POST /api/v1/login
GET /api/v1/user/id/:id
GET /api/v1/user/email/:email
Retrieves the user information based on the Facebook ID or Email provided depending on the route API endpoint.
Name | Type | Description |
---|---|---|
id | String | A User's facebook ID |
String | A User's email address |
Response: 200
{
"_id": "5807f1f75e22d052a7fd7994",
"name": "Kumin In",
"email": "[email protected]",
"profilePhotoURL": "graph.facebook.com/example_id/picture",
"__v": 0,
"pendingFriends": [],
"friends": [],
"facebook": {
"id": "example_id"
}
}
GET /api/v1/user/id/:id/publicKey
PUT /api/v1/user/id/:id/publicKey
PUT /api/v1/user/friend/accept
PUT /api/v1/user/friend/decline
PUT /api/v1/user/friend/add
GET /api/1/conversation
PUT /api/v1/conversation
POST /api/v1/conversation
Kumin In, Aaron Turner. CECS 478. 2016