GET ./mood
Retrieves mood entries based on the provided filters.
Query Params
| Name | Value Type | Validation | Details |
|---|---|---|---|
| uaID | integer | Required | User ID. Must be a natural number greater than zero. |
| ascID | integer | Optional | School year ID. Must be a natural number greater than zero. |
| date | string | Optional | Date 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"]}]}
