Retrieve a list of images for plants by IDs

GET /plants-list/images

Query parameters

  • ids string Required

    Comma-separated list of plant IDs

Responses

  • 200 application/json

    A list of plant images

    Hide response attributes Show response attributes object
    • id integer
    • images array[object]
      Hide images attributes Show images attributes object
      • id integer
      • author string
      • location string
      • publ_date string(date)
      • organ string
      • url string
      • plant object
        Hide plant attributes Show plant attributes object
        • id integer Required
        • num_inpn string
        • rank_code string
        • family object
          Hide family attributes Show family attributes object
          • id integer
          • name string
        • genre object
          Hide genre attributes Show genre attributes object
          • id integer
          • name string
        • scientific_name string Required
        • correct_name string Required
        • french_name string Required
        • author string Required
        • publ_year integer
        • eflore_url string Required
GET /plants-list/images
curl \
 -X GET http://104.248.160.134/api/plants-list/images?ids=string
Response examples (200)
[
  {
    "id": 42,
    "images": [
      {
        "id": 42,
        "author": "string",
        "location": "string",
        "publ_date": "2024-05-04",
        "organ": "string",
        "url": "string",
        "plant": {
          "id": 42,
          "num_inpn": "string",
          "rank_code": "string",
          "family": {
            "id": 42,
            "name": "string"
          },
          "genre": {
            "id": 42,
            "name": "string"
          },
          "scientific_name": "string",
          "correct_name": "string",
          "french_name": "string",
          "author": "string",
          "publ_year": 42,
          "eflore_url": "string"
        }
      }
    ]
  }
]