Skip to content

Commit

Permalink
feat: update api documentation yaml (tree and capture response objects)
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-rice committed Jul 7, 2024
1 parent b323df3 commit 0abe26f
Showing 1 changed file with 36 additions and 21 deletions.
57 changes: 36 additions & 21 deletions docs/api/spec/query-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1302,43 +1302,46 @@ components:
maxItems: 2
description: 2 points defining the bounding box
tree:
description: a single tree object
description: A single tree object
type: object
x-examples: {}
title: ''
properties:
id:
type: number
photo_url:
type: string
verified:
type: boolean
token_id:
type: string
created_at:
latest_capture_id:
type: number
image_url:
type: string
lat:
type: number
lon:
type: number
species_id:
type: number
planter_id:
type: number
estimated_geometric_location:
type: string
gps_accuracy:
type: number
capture_id:
morphology:
type: string
description: "In the public.trees table, it's the uuid column"
capture_approval_tag:
age:
type: number
created_at:
type: string
domain_specific_data:
type: object
morphology:
updated_at:
type: string
rejection_reason:
estimated_geographic_location:
type: string
age:
status:
type: string
attributes:
type: string
species_id:
type: number
species_name:
type: string
species_description:
type: string
country_name:
type: string
country:
description: ''
Expand Down Expand Up @@ -1556,7 +1559,7 @@ components:
phone:
type: string
capture:
description: ''
description: A tree photo capture and its associated data package, representing a tree at a given moment in time
type: object
properties:
id:
Expand All @@ -1569,6 +1572,18 @@ components:
type: string
image_url:
type: string
grower_id:
type: number
growing_organization_id:
type: number
token_id:
type: number
approved:
type: boolean
wallet_id:
type: number
wallet_name:
type: string
grower_account:
description: ''
type: object
Expand Down

0 comments on commit 0abe26f

Please sign in to comment.