Manage media
1. Get module in Postman collection
2. Manage media
There are only 2 requests - create and delete. There are several nuances:
Media can be attached after creating a reminder, because the request includes the post ID
Only 1 media file can be attached per request. This has made file validation clearer
The maximum number of media files for one reminder is 3
As a result, the Reminder entity object will look like this:
{
"id": 3,
"title": "Call to John V2",
"description": "Discuss task details",
"priority": "low",
"tags": [
"work",
"meeting",
"backend"
],
"isCompleted": true,
"createdAt": 1692284813,
"scheduledAt": 1693758600,
"media": [
{
"id": 11,
"url": "https://migrate.run/storage/195a1112fa4156f63b3837877c8f65ee7d19a36705d27c6085e092f873533ca4/todo-attachments/aygqv9IX8tx4NnSplzoJhFb3Zu1MoY7BrKgM5ncC.png"
},
{
"id": 12,
"url": "https://migrate.run/storage/195a1112fa4156f63b3837877c8f65ee7d19a36705d27c6085e092f873533ca4/todo-attachments/ZTOw5qSfoA0t5ffkQ69j8d0MuooLWoC4dMBB9kqM.png"
}
]
}
Last updated