GET ./mood

Retrieves mood entries based on the provided filters.

Query Params

NameValue TypeValidationDetails
uaIDintegerRequiredUser ID. Must be a natural number greater than zero.
ascIDintegerOptionalSchool year ID. Must be a natural number greater than zero.
datestringOptionalDate of the mood entry in YYYY-MM-DD format.

Example

GET /api/v2/mood?ascID=1&date=2023-10-01&uaID=123

Response

  • 200 OK: Returns the list of mood entries.
  • 400 Bad Request: Validation errors.
  • 403 Forbidden: User does not have permission to retrieve mood entries.
{
"meta": {
"countTotal": "10",
"countData": "2",
"countOffset": "0"
},
"data": [
{
"ascID": 1,
"uaID": 123,
"date": "2023-10-01",
"type": 1,
"details": "Feeling good about my grades.",
"tags": ["grades", "family"]
},
{
"ascID": 1,
"uaID": 123,
"date": "2023-10-01",
"type": -1,
"details": "Had a bad day.",
"tags": ["health"]
}
]
}