Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sortBy and sortOrder params to additional BrAPI endpoints #590

Open
bellerbrock opened this issue Mar 26, 2024 · 0 comments
Open

Add sortBy and sortOrder params to additional BrAPI endpoints #590

bellerbrock opened this issue Mar 26, 2024 · 0 comments
Labels
BrAPI-Phenotyping Related to BrAPI-Phenotyping New Parameter Adding a new search/filter parameter

Comments

@bellerbrock
Copy link

bellerbrock commented Mar 26, 2024

Currently sortBy and sortOrder are included in the spec for the studies and trials endpoints, which is useful when importing studies to Field Book. How about adding sort parameters to the variables endpoint for trait imports? It'd be helpful to be able to sort variable responses by observationVariableName and observationVariableDbId. Maybe commonCropName , dataType and status as well.

One limitation to using the sort parameters is knowing if the server has them implemented, and for which attributes. So another request would be to include the details of each individual endpoint's sort implementation within the /serverinfo call, or make it part of a more general compatibility check.

@BrapiCoordinatorSelby BrapiCoordinatorSelby added New Parameter Adding a new search/filter parameter BrAPI-Phenotyping Related to BrAPI-Phenotyping labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BrAPI-Phenotyping Related to BrAPI-Phenotyping New Parameter Adding a new search/filter parameter
Projects
None yet
Development

No branches or pull requests

2 participants