Indoor Plant Expert

Indoor Plant Expert · Acciones GPT

oTreeba Conditions API

This is a simple OpenAPI specification for the oTreeba Conditions API endpoint.

  • GET /studies/conditions/?=Retrieve a list of medical conditions
Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "oTreeba Conditions API",
    "version": "1.0.0",
    "description": "This is a simple OpenAPI specification for the oTreeba Conditions API endpoint."
  },
  "servers": [
    {
      "url": "https://api.otreeba.com/v1",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/studies/conditions/?=": {
      "get": {
        "operationId": "getConditions",
        "summary": "Retrieve a list of medical conditions",
        "responses": {
          "200": {
            "description": "A list of medical conditions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "slug": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Perenual Pest and Disease List API

API to search and fetch pest and disease information related to plant species.

  • GET /pest-disease-list?q=Searches for pests and diseases by species name
Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Perenual Pest and Disease List API",
    "version": "1.0.0",
    "description": "API to search and fetch pest and disease information related to plant species."
  },
  "servers": [
    {
      "url": "https://perenual.com/api/pest-disease-list/",
      "description": "Perenual API server"
    }
  ],
  "paths": {
    "/pest-disease-list?q=": {
      "get": {
        "operationId": "searchPestDisease",
        "summary": "Searches for pests and diseases by species name",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Query string to search for names of species",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A JSON object containing pest and disease data for the queried species",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "common_name": {
                            "type": "string"
                          },
                          "scientific_name": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}