Add full_url field and update download_url format in media API#256
Add full_url field and update download_url format in media API#256ahosgood wants to merge 6 commits intotorchbox:mainfrom
full_url field and update download_url format in media API#256Conversation
full_url field and update download_url format in media API (fixes #254)full_url field and update download_url format in media API
|
Thank you for this @ahosgood. Note to self: this would constitute a breaking change, so need to higlight in release notes |
|
Having thought of this, Since the aim is to be consistent with the core attributes, can you please add a |
@zerolab - I'm sorry, you might have to explain a little more. At the moment, I'm seeing this in the image API detail endpoint which is the structure I tried to copy: {
"id": 1,
"meta": {
"type": "wagtailimages.Image",
"detail_url": "http://localhost:8000/api/v2/images/1/",
"tags": [],
"download_url": "/media/original_images/my_image.jpg"
},
"title": "Foobar",
"width": 1920,
"height": 1080
}There is a I'm working on Wagtail 6.x though - maybe something has changed in Wagtail 7? |
ddccf3a to
b39f564
Compare
Fixes #254 and introduces parity with the main Wagtail images model (https://github.com/wagtail/wagtail/blob/main/wagtail/images/models.py)