-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgarden.yaml
63 lines (63 loc) · 1.63 KB
/
garden.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
openapi: 3.0.0
# Added by API Auto Mocking Plugin
servers:
- description: Garden API
url: https://api.garden.com/v1/staging
info:
description: This is the API to backend the Garden Aid React app using Okta Single Sign on Provider
version: "1.0.0"
title: Garden API
contact:
email: kc@kristacalderon.com
tags:
- name: plantSearch
description: Calls for searching for plants
paths:
/search:
get:
tags:
- plantSearch
summary: Gets plants based on search criteria
operationId: plantSearch
description: |
Takes a query and uses a 3rd party api to search for plants whose name matches the query
responses:
'200':
description: Page of plant results with data as the plants
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Plant'
lastPage:
type: integer
perPage:
type: integer
total:
type: integer
components:
schemas:
Plant:
type: object
properties:
id:
type: integer
refId:
type: string
common_name:
type: string
scientific_name:
type: string
imageUrls:
type: object
properties:
defaultlUrl:
type: string
smallUrl:
type: string
thumbnailUrl:
type: string