API Status and Statistics
Get API and MongoDB Status
- Endpoint:
/api/status
- Method: GET
- Query Params: No parameters needed.
- Response: JSON containing application and database status.
Get Application Statistics
- Endpoint:
/api/stats
- Method: GET
- Request: No request body is needed.
- Response: JSON containing API statistics (e.g., total users, total journal entries).
Get User Statistics
- Endpoint:
/api/user/:id/journal-entries
- Method: GET
- Query Parameters: id The ID of the user whose journal entries are to be fetched.
- Response: The total number of entries the user has.
Home Prev - Joournal-Entries Next - Error Handling