You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
existing model PlantsSummaryDto (backend/src/model/dto.rs) has to be extended with a new list-field life_cycle (backend/src/model/enum/life_cycle.rs), so that the endpoint invocations of /api/plants/{id} and /api/plants also contain a plant's life cycle in the response
life_cycle is a list containing any combination of its 3 possible values (annual, biennial, perennial) or just an empty list in case a plant has no life cycle value in the DB
endpoint definition of plants endpoints can be found here: backend/src/controller/plants.rs
currently, the response when calling /api/plants/{id} (or /api/plants for a list of plants) looks like this:
Spread will be an integer, see use integer for spread and height #822.
This is also needed for UC area of plants, which you will probably do as next UC (after copy&paste).
Did you look through all UC?
Is it a good idea to stuff everything to PlantsSummaryDto?
For #476 we will need nearly all of plant's data.
Tasks
existing model
PlantsSummaryDto
(backend/src/model/dto.rs) has to be extended with a new list-fieldlife_cycle
(backend/src/model/enum/life_cycle.rs), so that the endpoint invocations of/api/plants/{id}
and/api/plants
also contain a plant's life cycle in the responselife_cycle is a list containing any combination of its 3 possible values (annual, biennial, perennial) or just an empty list in case a plant has no life cycle value in the DB
endpoint definition of plants endpoints can be found here: backend/src/controller/plants.rs
currently, the response when calling
/api/plants/{id}
(or/api/plants
for a list of plants) looks like this:Use case
plants_layer
Related Pull request
#724
The text was updated successfully, but these errors were encountered: