URLs¶
Names¶
These URL names are available when using django_messages_drf urls.py:
| View | Description |
|---|---|
| django_messages_drf:inbox | Inbox view. |
| django_messages_drf:thread | Lists the details of a tread of a User. Requires a UUID of a thread. |
| django_messages_drf:thread-create | Create new message to specific user. Requires a User PK (user to send). |
| django_messages_drf:thread-send | Replies to a thread. Requires thread UUID. |
| django_messages_drf:thread-delete | Delete message thread, requires thread UUID. |
| django_messages_drf:message-edit | Edits a message sent in a thread. |
django_messages_drf:inbox¶
It doesn't require parameters
django_messages_drf:thread¶
| Parameter | Description | Method |
|---|---|---|
| uuid | The UUID of a thread | GET |
django_messages_drf:thread-create¶
Creates a thread.
| Parameter | Description | Method |
|---|---|---|
| user_id | The user id | GET |
| message | The content of the message | POST |
| subject | The subject of the message | POST |
django_messages_drf:thread-send¶
Replies to the thread.
| Parameter | Description | Method |
|---|---|---|
| uuid | The UUID of a thread | GET |
| user_id | The user id | GET |
| message | The content of the message | POST |
| subject | The subject of the message | POST |
django_messages_drf:thread-delete¶
Replies to the thread.
| Parameter | Description | Method |
|---|---|---|
| uuid | The UUID of a thread | DELETE |
django_messages_drf:message-edit¶
Edits a message sent by a given user.
| Parameter | Description | Method |
|---|---|---|
| user_id | The UUID of a thread | GET |
| thread_id | The UUID of a thread | GET |
| uuid | The UUID of the message to edit | PUT |
| content | The content of the message | PUT |