The user logs in

Request body parameters

username
Type:
String
The username of the user who wishes to log in.

password
Type:
String
The user's password.
The user logs a new activity that they did (This endpoint is not yet ready).

Request body parameters

username
Type:
String
The username of the user who did the activity.

startTime
Type:
String
The date and time the activity started.

endTime
Type:
String
The date and time the activity ended.

activity
Type:
String
The name of the activity. The value can only be one of the existing activityType values.
Create a new type of activity that a user can do.

Request body parameters

type
Type:
String
The name of the new activity type.
Get all existing logs of the user

Path parameters

username
The username for which the logs have to be fetched.

Query string parameters
(None)
States whether the user has added all the required logs

Path parameters

username
The username for which completedness has to be determined.

Query string parameters
(None)
Get all activities logged for a user.

Path parameters

username
The username for which the activities have to be fetched.

Query string parameters
(None)
Get all existing activity types

Path parameters
(None)

Query string parameters
(None)
(None as of now. This needs to be discussed later.)
Delete a particular activity.

Path parameters

id
The id of the activity to be deleted.
Delete a particular activity type.

Path parameters

id
The id of the activity type to be deleted.