GET /assessment/:assessment_id/
Result:
{
...
"images": [
{
"id": 3,
"featured": true || false, # Only one image can be featured
"note": "...",
"url": "...",
"width": 350,
"height": 600,
"thumbnail_url": "..."
"thumbnail_width": 350,
"thumbnail_height": 600,
},
{ ... }
]
}
POST /assessment/:assessment_id/featured-image (set_featured_image)
Request:
{ "id": 7 }
POST /assessment/:assessment_id/images/ (upload_image)
Request: Contains single multipart-encoded file
DELETE /images/:image_id/ (delete_image)
Yeah that new endpoint for changing the featured image looks ideal!