API - extras/image-attachments - Filter by Device/Rack/Site/... #5072
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Environment
Proposed Functionality
As of now, using the api endpoint to retrieve images by device/site/rack is only possible by retrieving all image-attachments and then locally looping through them to find the required images. This is possible of course, but not scalable at all.
There is, according to the documentation, no possibility to filter this endpoint. The only two possible filters are limit and offset.
Another possibility is by adding a series of images to the respective parent objects (device,rack,site,...) themselves.
Use Case
Retrieving images for a certain object (device with id X, rack with id Y, site with id Z, ...)
Database Changes
None required as these objects are already linked to their models.
External Dependencies
None as far as I can think of.
The text was updated successfully, but these errors were encountered: