Open markfinger opened 7 years ago
Given James' schedule, we're unlikely to see any progress on this until next week at the earliest.
Related: #247
@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.
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.