Download OpenAPI specification:
Journal entries, tags and statistics for client self-reflection
Creates, updates, or soft-deletes a Journal entry.
POST — Creates a new Journal record. Sets the creation timestamp dynamically and returns the new journalid (HTTP 201). If an existing record is found by userloginname the existing journalid is returned (HTTP 200) instead.
PUT /{journalid}/ — Partially or fully updates an existing Journal record and refreshes update_timestamp. Returns the journalid (HTTP 200).
DELETE /{journalid}/ — Soft-deletes the journal by setting is_deleted=True.
Uses JournalCreateUpdateSerializer for writes and JournalGetSerializer for reads.
| userid | integer or null |
| title | string or null <= 255 characters |
| description | string or null |
| journal_timestamp | string or null <date-time> |
{- "userid": 0,
- "title": "string",
- "description": "string",
- "journal_timestamp": "2019-08-24T14:15:22Z"
}{- "userid": 0,
- "title": "string",
- "description": "string",
- "journal_timestamp": "2019-08-24T14:15:22Z"
}Creates, updates, or soft-deletes a Journal entry.
POST — Creates a new Journal record. Sets the creation timestamp dynamically and returns the new journalid (HTTP 201). If an existing record is found by userloginname the existing journalid is returned (HTTP 200) instead.
PUT /{journalid}/ — Partially or fully updates an existing Journal record and refreshes update_timestamp. Returns the journalid (HTTP 200).
DELETE /{journalid}/ — Soft-deletes the journal by setting is_deleted=True.
Uses JournalCreateUpdateSerializer for writes and JournalGetSerializer for reads.
| journalid required | integer A unique integer value identifying this journal. |
| userid | integer or null |
| title | string or null <= 255 characters |
| description | string or null |
| journal_timestamp | string or null <date-time> |
{- "userid": 0,
- "title": "string",
- "description": "string",
- "journal_timestamp": "2019-08-24T14:15:22Z"
}{- "userid": 0,
- "title": "string",
- "description": "string",
- "journal_timestamp": "2019-08-24T14:15:22Z"
}Creates, updates, or soft-deletes a Journal entry.
POST — Creates a new Journal record. Sets the creation timestamp dynamically and returns the new journalid (HTTP 201). If an existing record is found by userloginname the existing journalid is returned (HTTP 200) instead.
PUT /{journalid}/ — Partially or fully updates an existing Journal record and refreshes update_timestamp. Returns the journalid (HTTP 200).
DELETE /{journalid}/ — Soft-deletes the journal by setting is_deleted=True.
Uses JournalCreateUpdateSerializer for writes and JournalGetSerializer for reads.
| journalid required | integer A unique integer value identifying this journal. |
Retrieves all journal entries associated with a given chat sessionId. Send the sessionId as a URL path parameter. Returns the journal list via JournalGetSerializer.
| journalid required | integer A unique integer value identifying this journal. |
Retrieves all journal entries for a given userId, sorted by most recent first. The response includes each journal's associated tags. Send the userId as a URL path parameter. Returns 204 if no journals exist.
| journalid required | integer A unique integer value identifying this journal. |
Returns all journal entries for a user within a date or datetime range, ordered most recent first.
POST — Accepts "userid", "fromdate", and "todate" in the request body. Both date values can be either a date string ("YYYY-MM-DD") or a full ISO datetime ("YYYY-MM-DDTHH:MM:SS"). Date-only values are normalised to midnight for fromdate and 23:59:59 for todate to include the full day. Returns 204 if no journals exist in the range.
| title | string or null <= 255 characters |
| description | string or null |
| journal_timestamp | string or null <date-time> |
| userid | integer or null |
{- "title": "string",
- "description": "string",
- "journal_timestamp": "2019-08-24T14:15:22Z",
- "userid": 0
}{- "journalid": 0,
- "title": "string",
- "description": "string",
- "journal_timestamp": "2019-08-24T14:15:22Z",
- "userid": 0
}Retrieves all journal entries for a user identified by their userLoginName. Filters the Journal table via a related-field lookup on "userid__userloginname". Send the userLoginName as a URL path parameter. Returns the full journal list via JournalGetSerializer.
Retrieves all journal entries for a user identified by their userLoginName. Filters the Journal table via a related-field lookup on "userid__userloginname". Send the userLoginName as a URL path parameter. Returns the full journal list via JournalGetSerializer.
| journalid required | integer A unique integer value identifying this journal. |
Returns a daily journal count for a user within a date range.
POST — Accepts "userid", "fromdate" (YYYY-MM-DD), and "todate" (YYYY-MM-DD) in the request body. Queries all journals within the inclusive date range, groups them by calendar date using pandas, and returns a list of {"journaldate": ..., "count": ...} records under the "journalstats" key. Returns 204 if no journals exist in the range.
| userid | integer or null |
| journal_timestamp | string or null <date-time> |
{- "userid": 0,
- "journal_timestamp": "2019-08-24T14:15:22Z"
}{- "journalid": 0,
- "userid": 0,
- "journal_timestamp": "2019-08-24T14:15:22Z"
}Creates, updates, or soft-deletes a Journaltag entry.
POST — Creates a new tag record and returns the journaltagid.
PUT /{journaltagid}/ — Updates an existing tag record.
DELETE /{journaltagid}/ — Soft-deletes the tag by setting is_deleted=True.
Uses JournalTagCreateSerializer for writes and JournalTagGetSerializer for reads.
| journalid | integer or null |
| tagtypeid | integer or null |
| tagdescription | string or null <= 255 characters |
{- "journalid": 0,
- "tagtypeid": 0,
- "tagdescription": "string"
}{- "journalid": 0,
- "tagtypeid": 0,
- "tagdescription": "string"
}Creates, updates, or soft-deletes a Journaltag entry.
POST — Creates a new tag record and returns the journaltagid.
PUT /{journaltagid}/ — Updates an existing tag record.
DELETE /{journaltagid}/ — Soft-deletes the tag by setting is_deleted=True.
Uses JournalTagCreateSerializer for writes and JournalTagGetSerializer for reads.
| journaltagid required | integer A unique integer value identifying this journaltag. |
| journalid | integer or null |
| tagtypeid | integer or null |
| tagdescription | string or null <= 255 characters |
{- "journalid": 0,
- "tagtypeid": 0,
- "tagdescription": "string"
}{- "journalid": 0,
- "tagtypeid": 0,
- "tagdescription": "string"
}Creates, updates, or soft-deletes a Journaltag entry.
POST — Creates a new tag record and returns the journaltagid.
PUT /{journaltagid}/ — Updates an existing tag record.
DELETE /{journaltagid}/ — Soft-deletes the tag by setting is_deleted=True.
Uses JournalTagCreateSerializer for writes and JournalTagGetSerializer for reads.
| journaltagid required | integer A unique integer value identifying this journaltag. |
Creates a new Journaltag and retrieves all tags for a given journalId.
POST — Creates a new Journaltag record, sets create_timestamp and update_timestamp, and returns the journaltagid (HTTP 201).
GET /{journalId}/ — Returns all active tags associated with the given journalId via JournalTagGetSerializer.