ic-labs / django-icekit

GLAMkit is a next-generation Python CMS by the Interaction Consortium, designed especially for the cultural sector.
http://glamkit.com
MIT License
47 stars 11 forks source link

Allow Image->MediaCategory to be defined via API writes #248

Open markfinger opened 7 years ago

markfinger commented 7 years ago

Optimally, we'd be able to define the relations via an array of MediaCategory ids when writing to the Image endpoint.

Given time constraints, might be easiest to expose an endpoint that handles the intermediary models. Eg: {"image": {"id": 1}, "category": {"id: 2}}.

Up to you, @jmurty, given your experience and understanding of the API.

markfinger commented 7 years ago

Given James' schedule, we're unlikely to see any progress on this until next week at the earliest.

markfinger commented 7 years ago

Related: #247

jmurty commented 7 years ago

@markfinger I have proceeded with #247 in a new branch 247-image-categories-in-api that permits the preferred direct creation or assignment of media categories via the Image API itself, rather than through a new API endpoint as we have here.

This work could still be useful if a MediaCategory API endpoint would be useful, but shouldn't be needed for now.