Description of endpoints:
Obtains the data of all the users
Obtains the data given an userName
Obtains the data given an id of an user
Obtains the data of two specific users
A session token in the headers is neeeded. Validates a session token.
Needs a body with the userName and the userPassword. Generates a session token if the user exists.
Needs a body with the userName and the userPassword. Registers an user
Needs a body with the userName and the userPassword. Changes the password of an user
Returns all the users that are not yet friends of the user that has the given userName
Returns all the users that are pending friends of the user that has the given userName
Returns all the users that are accepted friends of the user that has the given userName
Generates a friend request. Generates friend status of pending
Accepts a friend request. Generates friend status of accepted
Shares summaries between friends
Deletes friend and servers any conection to it.
Unshares summaries between friends.
Adds a summaryId to the summaryList of the user
Saves and creates a copy of a summary from another user.
Deletes a summaryId to the summaryList of the user.
Obtains the data of all the summaries
Obtains the summary given an summaryId
Obtains all the summaries of a given user
Obtains the feed of summaries of an users
Obtains the feed of summaries that are public
Needs in the body all information needed in order to generate a summary
Erases a summary
Needs in the body all information needed in order to update a summary