Metron-Project / metron

Django website for a comic book database
https://metron.cloud/
GNU General Public License v3.0
90 stars 7 forks source link

Add image to schema for characters, series, and publisher responses. #192

Open Kihron opened 10 months ago

Kihron commented 10 months ago

Is your feature request related to a problem? Please describe. I would love if the image for the series, character, or publisher was included in the API response when just querying the general endpoint of when searching. This is more convenient because if you need the image you don't have to do multiple calls to each specific id to get the image.

Describe the solution you'd like Instead of:

"results": [
    {
        "id": 23817,
        "name": "'Breed",
        "modified": "2023-12-02T11:25:39.275547-05:00"
    },

Add image:

"results": [
    {
        "id": 23817,
        "image": "example",
        "name": "'Breed",
        "modified": "2023-12-02T11:25:39.275547-05:00"
    },

Describe alternatives you've considered You could potentially do multiple API calls in order to get the image, but with limited API calls per minute, this is very inefficient.

Additional context Add any other context or screenshots about the feature request here.

Kihron commented 10 months ago

It would also be particularly useful if the publisher was included with the above initial requests.