Retrieve random plants

GET /plants/random/{number}

Path parameters

  • number integer(int32) Required

    Number of random plants to retrieve

Query parameters

  • images boolean

    Include images

Responses

  • 200 application/json

    A list of random plants

    Hide response attributes Show response attributes object
    • id integer
    • 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
    • correct_name string
    • french_name string
    • author string
    • publ_year integer
    • eflore_url string
    • images array
GET /plants/random/{number}
curl \
 -X GET http://104.248.160.134/api/plants/random/{number}
Response examples (200)
[
  {
    "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",
    "images": []
  }
]