Retrieve a list of plants

GET /plants

Responses

  • 200 application/json

    A list of plants

    Hide response attributes Show response attributes object
    • count integer

      The total count of plants

    • next string

      The URL for the next page of results

    • previous string

      The URL for the previous page of results

    • results array[object]
      Hide results attributes Show results 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
curl \
 -X GET http://104.248.160.134/api/plants
Response examples (200)
{
  "count": 42,
  "next": "string",
  "previous": "string",
  "results": [
    {
      "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"
    }
  ]
}