Swagger Petstore - OpenAPI 3.0
SSwagger Petstore - OpenAPI 3.0
API ReferenceChangelog
GETList plants/plantsPOSTCreate a plant/plantsDELETEDelete a plant/plants/{id}
llms.txtPowered by Octri
GET/plants

List plants

Lists all plants that the authenticated user can access. Use limit to set the maximum number of results returned.

1 parameter
limitintegeroptional

The maximum number of plants to return.

2 status codes
200Returns an array of plant objects, each with a name and an optional tag.
namestringrequired

The name of the plant

tagstringoptional

Tag to specify the type

400Returned when an unexpected error occurs.
errorintegerrequired
messagestringrequired

Error handling

A 400 is returned for an unexpected request error. When supplied, limit must be an integer.

import { OpenAPIPlantStore } from "swagger-petstore---openapi-3-0-sdk";

const client = new OpenAPIPlantStore({
  baseUrl: "/api/v3",
  auth: { bearerAuth: process.env.OPEN_API_TOKEN! },
});

const result = await client.plants.list();
Response
[
  {
    "name": "Example Name",
    "tag": "example_value"
  }
]
NextCreate a plant