Yaml Documentation Update (tree and capture response objects) #383
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This branch updates the OpenAPI documentation for the
tree
andcapture
response objects according to the v2 domain model and project discussion on 7/04/24.Details
The
tree
andcapture
database tables specified in the v2 domain model do not include a number of fields that the web map client relies on:grower_id
growing_organization_id
country_name
token_id
approved
species_name
species_desc
wallet_name
wallet_id
Since the denormalized response objects coming from the query api have not been specified, a discussion was required to decide where these missing fields would likely come from. A number of decisions were made during the 7/04/24 meeting, but changes will be ongoing as v2 development progresses.
As of now:
capture
entity only.tree
s are more dynamic entities that may change over time.tree.species_id
in the tree database table will stay updated.species_desc
andspecies_name
fields may end up coming from a client-side request to the herbarium api in the future, but will be included on thetree
response object, for now.@dadiorchen 's Slack notes from 7/04/24 meeting: