mvn clean package
java -jar target/ItsBeenAges-1.0-SNAPSHOT.jar server ItsBeenAges.yaml
A contact
is a contact on a user
's phone. These are your friends.
A user
is a person using the app. They have a list of contact
associated with them.
DELETE https://api.neverland.io/v1/contacts/{id}
GET https://api.neverland.io/v1/contacts/{id}
POST https://api.neverland.io/v1/contacts
{
"firstName": "Sexually",
"lastName": "Ambiguous",
"visitFrequencySeconds": 86400
}
GET https://api.neverland.io/v1/users/{phoneNumber}
GET https://api.neverland.io/v1/users/{id}/contacts
POST https://api.neverland.io/v1/users
{
"firstName": "Sexually",
"lastName": "Ambiguous",
"phoneNumber": "1-212-222-2222"
}
Send over an array of Contact Ids
POST https://api.neverland.io/v1/users/{id}/associateContacts
[400, 401, 402, 404]