Skip to content

Commit

Permalink
Merge pull request #383 from sam-rice/update-tree-schema
Browse files Browse the repository at this point in the history
Yaml Documentation Update (tree and capture response objects)
  • Loading branch information
dadiorchen authored Jul 8, 2024
2 parents f02c67e + 0abe26f commit a458fdc
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 @@ -1570,7 +1573,7 @@ components:
entity_id:
type: number
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 @@ -1583,6 +1586,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 a458fdc

Please sign in to comment.