A sample API that uses a plant store as an example to demonstrate features in the OpenAPI specification
Servers
http://sandbox.mintlify.com
GET /plants
GET
/plants
Returns all plants from the system that the user has access to
Authorizations
bearerAuth
Type
HTTP (bearer)
Parameters
Query Parameters
limit
The maximum number of results to return
Type
integer
Format
"int32"Responses
Plant response
application/json
object[]
name
string
Required
The name of the plant
tag
string
Tag to specify the type
POST /plants
POST
/plants
Creates a new plant in the store
Authorizations
bearerAuth
Type
HTTP (bearer)
Request Body
application/json
object
name
string
Required
The name of the plant
tag
string
Tag to specify the type
id
integer
Required
Identification number of the plant
Format
"int64"Responses
plant response
application/json
object
name
string
Required
The name of the plant
tag
string
Tag to specify the type